ivorysql_ora
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
ivorysql | 1.0 | SIM | Apache-2.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 9140 | ivorysql_ora | No | Yes | No | Yes | No | No | sys |
| 9150 | ora_btree_gin | No | Yes | No | Yes | Yes | No | sys |
| 9160 | ora_btree_gist | No | Yes | No | Yes | Yes | No | sys |
| 9170 | pg_get_functiondef | No | Yes | No | Yes | Yes | No | - |
| 9180 | plisql | No | Yes | No | Yes | Yes | No | pg_catalog |
| 9190 | gb18030_2022 | No | Yes | No | Yes | Yes | No | pg_catalog |
| Related | |
|---|---|
| Depended By | ora_btree_gin ora_btree_gist |
from contrib/ivorysql_ora/ivorysql_ora.control and package metadata
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | ivorysql | - |
| RPM | PIGSTY | 5.1 | 1817161514 | ivorysql5 | - |
| DEB | PIGSTY | 5.1 | 1817161514 | ivorysql-5 | - |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el8.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el9.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el9.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el10.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| el10.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d12.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d12.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d13.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| d13.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u22.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u22.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u24.x86_64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
| u24.aarch64 | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS | PIGSTY MISS |
Install
You can install ivorysql directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install ivorysql; # Install for current active PG version
pig ext install -y ivorysql -v 18 # PG 18
dnf install -y ivorysql5 # PG 18
apt install -y ivorysql-5 # PG 18
Create Extension:
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 PostgreSQL
In 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
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.