db2fce
db2fce : DB2 compatibility functions, types, operators, and SYSIBM.SYSDUMMY1 for PostgreSQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9200 | db2fce | db2fce | 0.0.17 |
SIM | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | db2 sysibm |
| Requires | plpgsql |
| See Also | orafce pg_statement_rollback ivorysql_ora pgtt session_variable babelfishpg_common tds_fdw db_migrator db2_fdw |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.0.17 |
18 17 16 15 14 | db2fce |
plpgsql |
| RPM | PIGSTY | 0.0.17 |
18 17 16 15 14 | db2fce_$v |
- |
| DEB | PGDG | 0.0.17 |
18 17 16 15 14 | postgresql-$v-db2fce |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| el8.aarch64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| el9.x86_64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| el9.aarch64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| el10.x86_64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| el10.aarch64 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 | PIGSTY 0.0.17 |
| d12.x86_64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| d12.aarch64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| d13.x86_64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| d13.aarch64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u22.x86_64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u22.aarch64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u24.x86_64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u24.aarch64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u26.x86_64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
| u26.aarch64 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 | PGDG 0.0.17 |
Source
github.com/credativ/db2fce
db2fce-0.0.17.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources: README, SQL objects, control file
db2fce provides a DB2 compatibility environment for PostgreSQL. It creates DB2-style functions, types, operators, and the SYSIBM.SYSDUMMY1 compatibility view so SQL originally written for IBM Db2 can be adapted with fewer changes.
Enable
The extension creates most compatibility objects in the db2 schema and creates sysibm.sysdummy1 for DB2 queries that expect a dummy single-row table.
Compatibility Functions
The db2 schema includes date/time helpers such as microsecond, second, minute, hour, day, month, year, days, months_between, date, time, and timestamp_format.
String and conversion helpers include locate, translate, lcase, upper, lower, strip, char, integer, int, double, decimal, dec, hex, round, digits, and value.
Operators
The SQL layer also defines DB2-style operators such as ^= for inequality and !! for concatenation across several data types.
Notes
Adding db2 to search_path lets many DB2 function calls work without schema qualification. Some names that conflict with PostgreSQL syntax or built-in behavior may still need explicit db2. qualification.