ivorysql_ora
ivorysql : Oracle Compatible extension on Postgres Database
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9140 | ivorysql_ora | ivorysql | 1.0 | SIM | Apache-2.0 | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
--s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | sys |
| Need By | ora_btree_gin ora_btree_gist |
| Siblings | ora_btree_gin ora_btree_gist pg_get_functiondef plisql gb18030_2022 |
from contrib/ivorysql_ora/ivorysql_ora.control and package metadata
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 18 17 16 15 14 | ivorysql | - |
| RPM | PIGSTY | 5.1 | 18 17 16 15 14 | ivorysql5 | - |
| DEB | PIGSTY | 5.1 | 18 17 16 15 14 | ivorysql-5 | - |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
el8.x86_64 | MISS | MISS | MISS | MISS | MISS |
el8.aarch64 | MISS | MISS | MISS | MISS | MISS |
el9.x86_64 | MISS | MISS | MISS | MISS | MISS |
el9.aarch64 | MISS | MISS | MISS | MISS | MISS |
el10.x86_64 | MISS | MISS | MISS | MISS | MISS |
el10.aarch64 | MISS | MISS | MISS | MISS | MISS |
d12.x86_64 | MISS | MISS | MISS | MISS | MISS |
d12.aarch64 | MISS | MISS | MISS | MISS | MISS |
d13.x86_64 | MISS | MISS | MISS | MISS | MISS |
d13.aarch64 | MISS | MISS | MISS | MISS | MISS |
u22.x86_64 | MISS | MISS | MISS | MISS | MISS |
u22.aarch64 | MISS | MISS | MISS | MISS | MISS |
u24.x86_64 | MISS | MISS | MISS | MISS | MISS |
u24.aarch64 | MISS | MISS | MISS | MISS | MISS |
Source
Install
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install ivorysql; # install via package name, for the active PG version
pig install ivorysql_ora; # install by extension name, for the current active PG version
pig install ivorysql_ora -v 18; # install for PG 18Create this extension with:
CREATE EXTENSION ivorysql_ora;Usage
ivorysql_ora: Oracle Compatible extension on Postgres Database
The ivorysql_ora extension provides Oracle compatibility features for PostgreSQL as part of the IvorySQL project. It adds Oracle-compatible data types, functions, and PL/SQL behavior.
Enabling
CREATE EXTENSION ivorysql_ora;Oracle-Compatible Data Types
The extension adds Oracle-style data types including:
NUMBER/NUMBER(p,s)- Oracle-compatible numeric typeVARCHAR2(n)- Oracle-compatible variable-length stringDATE- Oracle-style DATE with time componentBINARY_FLOAT/BINARY_DOUBLE- IEEE floating point types
Oracle-Compatible Functions
Provides Oracle-style built-in functions for string manipulation, date arithmetic, numeric operations, and type conversion that behave consistently with Oracle semantics.
Compatibility Mode
IvorySQL supports an Oracle compatibility mode that changes parser behavior:
SET compatible_mode TO oracle; -- enable Oracle compatibility
SET compatible_mode TO pg; -- revert to standard PostgreSQLIn Oracle mode, the SQL parser accepts Oracle-style syntax including:
- Oracle-style outer joins (
(+)syntax) CONNECT BYhierarchical queries- Oracle-style sequences (
sequence.NEXTVAL) - Package-style object references