diff mbox series

[meta-oe,2/8] pg-hint-plan: add recipe

Message ID 20261206184418.7-3-bbnpreetsingh@gmail.com
State New
Headers show
Series PostgreSQL extensions with ptest | expand

Commit Message

Babanpreet Singh Dec. 6, 2026, 6:44 p.m. UTC
pg_hint_plan adds planner hints to PostgreSQL.

Signed-off-by: Babanpreet Singh <bbnpreetsingh@gmail.com>
---
 .../include/ptest-packagelists-meta-oe.inc    |  1 +
 .../pg-hint-plan/pg-hint-plan_1.9.0.bb        | 23 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-dbs/pg-hint-plan/pg-hint-plan_1.9.0.bb
diff mbox series

Patch

diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
index 1a498d0370..a52334e6e7 100644
--- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
+++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
@@ -83,6 +83,7 @@  PTESTS_SLOW_META_OE = "\
     jsoncpp \
     libusb-compat \
     mariadb \
+    pg-hint-plan \
     postgresql \
     re2 \
     rocksdb \
diff --git a/meta-oe/recipes-dbs/pg-hint-plan/pg-hint-plan_1.9.0.bb b/meta-oe/recipes-dbs/pg-hint-plan/pg-hint-plan_1.9.0.bb
new file mode 100644
index 0000000000..f43caaa26d
--- /dev/null
+++ b/meta-oe/recipes-dbs/pg-hint-plan/pg-hint-plan_1.9.0.bb
@@ -0,0 +1,23 @@ 
+SUMMARY = "Planner hints for PostgreSQL"
+DESCRIPTION = "pg_hint_plan lets a query carry hints in a special SQL \
+comment that tell the PostgreSQL planner which scan methods, join methods \
+and join order to use. Hints can also be stored in a table and matched to \
+queries by query ID."
+HOMEPAGE = "https://github.com/ossc-db/pg_hint_plan"
+BUGTRACKER = "https://github.com/ossc-db/pg_hint_plan/issues"
+LICENSE = "BSD-3-Clause AND PostgreSQL"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=54c687e5cf7a79aeee1e9e0d18c3bf2b \
+                    file://COPYRIGHT.postgresql;md5=b961de42bc88612f4beb10259b1f8f00"
+
+SRC_URI = "git://github.com/ossc-db/pg_hint_plan.git;protocol=https;branch=PG19;tag=REL19_${@d.getVar('PV').replace('.', '_')}"
+SRCREV = "4d3e9164dc2dc1b10dfe0c5e7a3cfe7983a8688d"
+
+UPSTREAM_CHECK_GITTAGREGEX = "REL19_(?P<pver>\d+(_\d+)+)"
+
+inherit ptest-pgxs
+
+DEPENDS += "flex-native"
+
+PTEST_PGXS_CONF = "shared_preload_libraries = 'pg_hint_plan'"
+
+RDEPENDS:${PN}-ptest += "hypopg postgresql-contrib"