Skip to content

plisql

PL/iSQL procedural language

ivorysql · PL/iSQL procedural language

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
9180plisqlivorysql1.0SIMApache-2.0C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-dt-NoYesNoYesnoyes

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY1.019 18 17 16 15ivorysql-
RPMPIGSTY6.019 18 17 16 15ivorysql-$v-
DEBPIGSTY6.019 18 17 16 15ivorysql-$v-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
el8.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
el9.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
el9.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
el10.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
el10.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
d12.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
d12.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
d13.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
d13.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u22.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u22.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u24.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u24.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u26.x86_64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A
u26.aarch64PIGSTY 6.0PIGSTY 5.6N/AN/AN/A

Source

github.com/IvorySQL/IvorySQL/tree/2269591ea327cbf99e7db6f518ec6ecf67cdadee/src/pl/plisql

pig build pkg ivorysql;		# build rpm/deb

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 by package name
pig install plisql;		# install by extension name

pig install plisql -v 19;   # install for PG 19
pig install plisql -v 18;   # install for PG 18

Create this extension with:

CREATE EXTENSION plisql;

Usage

Sources:

PL/iSQL is the IvorySQL procedural language for Oracle-style blocks, functions, procedures and packages. It supports exception handling, parameter modes and nested subprograms.

IvorySQL 6.0 is based on PostgreSQL 19.0 and ships plisql at SQL version 1.0. The PG18 package uses IvorySQL 5.6.

IvorySQL initializes plisql in the template database. An anonymous block can select the language explicitly.

DO LANGUAGE plisql $$
BEGIN
    RAISE NOTICE 'PL/iSQL is ready';
END
$$;

Oracle-style function and package declarations use the Oracle parser. In an IvorySQL session select it with SET ivorysql.compatible_mode = oracle.

Table reader