DH_PGXS_TEST(1)
π DH_PGXS_TEST(1) π
okay bestie, gather round, because this one's from the Debian PostgreSQL infrastructure manual suite and it is so niche but so useful π«Ά
β¨ NAME β¨
dh_pgxs_test β run the testsuite during a PGXS PostgreSQL extension build π§ͺπ
πΈ SYNOPSIS πΈ
dh_pgxs_test [loop]
π¦ DESCRIPTION π¦
so here's the tea, bestie β β PostgreSQL extensions have to be installed before you can test them. like, they literally cannot be tested before that happens. which means the normal debhelper way of kicking off tests, the one from dh_auto_test(1), just... does not work here. it's giving β¨incompatibleβ¨.
enter dh_pgxs_test, the main character π. it's a dh(1) sequence point created by the pgxs and pgxs_loop debhelper extensions, and it runs after dh_auto_install(1). what does it actually do? it calls pg_buildext installcheck once a PostgreSQL extension module has been built and installed into the debian/packagename/ directory. periodt. π
now, if you're the type of person who wants to change the action that dh_pgxs_test calls β and honestly, same β you should call pg_buildext or similar commands yourself. like this:
override_dh_pgxs_test:
echo "CREATE EXTENSION foo" | pg_buildext psql . . postgresql-%v-foo
look at that. iconic. π₯
π OPTIONS π
loopβ okay so when you dodh --with pgxs, packages get built insidebuild-%vsubdirectories. theloopoption is the counterpart todh --with pgxs_loopand it builds in the top-level directory instead. no cap π§
π SEE ALSO π
debhelper(7), dh(1), dh_make_pgxs(1), pg_buildext(1). go read them, iykyk π
π AUTHOR π
Christoph Berg <myon@debian.org> β tysm for your service π«‘π
okay that's the whole page bestie, you ate that π this was the Debian PostgreSQL infrastructure manual, version dated 2026-07-28, and yes it really is DH_PGXS_TEST(1) β slay, bye π
β¨πΈ
π¦ where this page comes from
- ubuntu stonking: postgresql-common-dev 293ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms