ivorysql_ora

ivorysql_ora

ivorysql : Oracle Compatible extension on Postgres Database

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
9140
ivorysql_ora
ivorysql
1.0
SIM
Apache-2.0
C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--
No
Yes
No
Yes
no
no
Relationships
Schemassys
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

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
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 / PGPG18PG17PG16PG15PG14
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 cache

Install 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 18

Create 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 type
  • VARCHAR2(n) - Oracle-compatible variable-length string
  • DATE - Oracle-style DATE with time component
  • BINARY_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 BY hierarchical queries
  • Oracle-style sequences (sequence.NEXTVAL)
  • Package-style object references
Last updated on