iif
Adds iif function compatibility
iif · Adds iif function compatibility
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101406 | iif | iif | 0.0.1 | SIM | BSD-3-Clause | C |
Usage
Sources:
- Official upstream README
- Official extension control file (iif.control)
- Official extension SQL (iif–0.0.1.sql)
iif — A sample extension for adding a function iif to Postgres. Use it when porting or emulating the corresponding database API. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
iif(boolean, anyelement, anyelement)is an extension function and returnsanyelement.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.