ora_btree_gist
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 | ivorysql_ora |
|---|
from contrib/ora_btree_gist/ora_btree_gist.control and package metadata
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | ivorysql | ivorysql_ora |
| 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 ora_btree_gist CASCADE; -- requires: ivorysql_ora
Usage
ora_btree_gist: Support for oracle indexing common datatypes in GiST
The ora_btree_gist extension adds GiST (Generalized Search Tree) operator class support for Oracle-compatible data types provided by IvorySQL.
Enabling
CREATE EXTENSION ora_btree_gist;
Creating GiST Indexes on Oracle Types
This extension allows you to create GiST indexes on Oracle-compatible data types such as NUMBER, VARCHAR2, and Oracle-style DATE, similar to how the standard btree_gist extension works for native PostgreSQL types.
CREATE TABLE t (val NUMBER);
CREATE INDEX t_val_gist_idx ON t USING gist (val);
Use Cases
GiST indexes with Oracle-compatible types enable:
- Exclusion constraints using Oracle data types
- Nearest-neighbor searches on Oracle-type columns
- Range queries with GiST optimizations for Oracle-compatible types
This extension is part of the IvorySQL Oracle compatibility suite and requires ivorysql_ora to be available.
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.