Skip to content

numpy_plpython3u

transform between numpy and plpython3u

numpy_plpython3u · transform between numpy and plpython3u

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101480numpy_plpython3unumpy_plpython3u1.0LANGMITC
Relationships
Requiresplpython3u

Usage

Sources:

numpy_plpython3u — Library to transform Postgres Array’s to numpy array’s directly without going through python lists. Use it when database code must run in or interoperate with this procedural language. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION numpy_plpython3u;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • numpy_to_plpython3(val internal) is an extension function and returns internal.
  • plpython3_to_numpy(val internal) is an extension function and returns real[].

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • Install the confirmed extension dependencies first: plpython3u.
  • The control file marks the extension as relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader