Skip to content

pg_readme_test_extension

Fixture extension used to test pg_readme document generation

pg_readme · Fixture extension used to test pg_readme document generation

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
4301pg_readme_test_extensionpg_readme0.7.1UTILPostgreSQLSQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d-rNoNoNoYesyesno
Relationships
See Alsopg_readme schedoc ddlx pgpdf pg_render pgdd meta
Siblingspg_readme
Test fixture; control default_version=forever; no hstore dependency. Catalog 0.7.1; PGDG RPM/PIGSTY DEB.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTMIXED0.7.119 18 17 16 15pg_readme-
RPMPGDG0.7.119 18 17 16 15pg_readme_$v-
DEBPIGSTY0.7.119 18 17 16 15postgresql-$v-pg-readme-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
el8.aarch64N/APGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
el9.x86_64PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
el9.aarch64PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
el10.x86_64PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
el10.aarch64PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1PGDG 0.7.1
d12.x86_64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
d12.aarch64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
d13.x86_64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
d13.aarch64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u22.x86_64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u22.aarch64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u24.x86_64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u24.aarch64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u26.x86_64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1
u26.aarch64PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1PIGSTY 0.7.1

Source

github.com/bigsmoke/pg_readme/tree/master/pg_readme_test_extension

pig build pkg pg_readme;		# 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 pg_readme;		# install by package name
pig install pg_readme_test_extension;		# install by extension name

pig install pg_readme_test_extension -v 19;   # install for PG 19
pig install pg_readme_test_extension -v 18;   # install for PG 18
pig install pg_readme_test_extension -v 17;   # install for PG 17
pig install pg_readme_test_extension -v 16;   # install for PG 16
pig install pg_readme_test_extension -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION pg_readme_test_extension;

Usage

Sources:

pg_readme_test_extension is the bundled integration-test fixture for pg_readme. It installs commented domains, types, tables, views, routines, triggers, and processing instructions so upstream can verify pg_extension_readme(). It is not an application feature or a production dependency.

Exercise the Fixture

CREATE EXTENSION pg_readme CASCADE;
CREATE EXTENSION pg_readme_test_extension;

SELECT pg_extension_readme('pg_readme_test_extension'::name);

Use the output to test or demonstrate the generator, then remove the fixture from a disposable database:

DROP EXTENSION pg_readme_test_extension;

Boundary and Caveats

  • The upstream distribution version is 0.7.1, but this fixture’s control version is deliberately the literal forever.
  • The fixture ships with pg_readme; current Pigsty DEB packages are 0.7.1 and RPM packages remain 0.7.0. The extension version stays forever on both sides.
  • It is relocatable, does not require hstore itself, and creates sample objects with generic names. Install it only where those objects cannot collide with real application schemas.
  • Its SQL surface exists to cover generator behavior and can change as tests evolve. Do not build application code against the fixture objects.

Table reader