Skip to content

bankbsb

Postgres Extension for Australian BSB numbers data type.

bankbsb · Postgres Extension for Australian BSB numbers data type.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101289bankbsbbankbsb0.0.1TYPEMITC

Usage

Sources:

bankbsb — A PostgreSQL Extension to add an Australian banking BSB number type. Use it when application data needs this type, domain, or its operators. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION bankbsb;

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

  • bankbsb_cmp(bsb, bsb) is an extension function and returns integer.
  • bankbsb_eq(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_ge(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_gt(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_in(cstring) is an extension function and returns bsb.
  • bankbsb_le(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_lt(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_ne(bsb, bsb) is an extension function and returns boolean.
  • bankbsb_out(bsb) is an extension function and returns cstring.
  • bsb is an extension-defined type.
  • bankbsb_ops is an extension-defined operator class.

Requirements and Caveats

  • The reviewed control file declares default version 0.0.1.
  • 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