From patchwork Sun Dec 6 18:44:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Babanpreet Singh X-Patchwork-Id: 107568 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.707.1796582671401753577 for ; Sun, 06 Dec 2026 10:44:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=yF3JFwAs; spf=pass (domain: gmail.com, ip: 209.85.214.171, mailfrom: bbnpreetsingh@gmail.com) Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2f066274caeso15024335ad.2 for ; Sun, 06 Dec 2026 10:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796582671; x=1797187471; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=E5bmI0xPjbovA33L1yYY1hMsDHJDSd+AlGTZUxK+eb8=; b=yF3JFwAstCjB6PxdjmxpLozLG2MhDtyn1hnYNV3fqGfL7E6lO6Tckfg1so/5xDqLy3 T25XIEUu21DtLQYuwDrdivQudAKZBnCo560evpU9NkmGEJgW9K79vZgLId274QizwAOg j22TrNlRdm1nn/uqvM7RnPKTb+2zPgvv5BuH2uqehGsEmCse+FOju8Se8qXNAeUr1Lb3 +zvYtrKN3k9xr1XRx4tYWrsHbULkZuTWfGx8sAjjXFYFc90JY1MtQp0hk1dUNcYl31Lb i03qX9z1XY3Khk/tGrxswyOZc3Jy1h40re0tjBYlgv1hQy4h/bjWK5wGr2Egi0DAK/nU eZng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796582671; x=1797187471; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=E5bmI0xPjbovA33L1yYY1hMsDHJDSd+AlGTZUxK+eb8=; b=NDZEbff4PU/uibautEjb0s/vG6txYB639rpdYjgqZuNKIApZ1W8HWX0m+z/+j6EoJG GUEb7Wdd1ZRMz7gqdvZn4dIYQM7OrkMxLpwEF8zYbeGf/72S9K4ADqnbSSM2NVO1hxBH smK1O85eNVISn42bWI2BRs4OcBH6miOrD0uFFya/ORbCh7qqC0uu47eR4TloiUKtPJNp iN/pygnaqyuX/g2Zlq9c2NVrrVcEuIZEwN7Om0MfKfzCueibOTCKIT0ztrMnzPI8Yilh ovlt0HoeM2qFfX0Tr1LlGKPxO4U/TXMHl3R2zdSuk92Giil1hUQk2AyaSr/NNDnMyW+9 cuxw== X-Gm-Message-State: AB4q+uHUJW/x3qVADgv/RmDrIFWUh8cPJQeGOK8MG9oIs00j+kWDg00z /8eiOongcMlguQm3b1ghvkyirdauZN35J6m0fX8Be3mmBOH7LP0/kqNoVCrlQ1EA X-Gm-Gg: AZFdTZepSW5A79YTLzsvUtoNmFV62NsxaDVtwaJXmp0V41A0OPAJTmf6VYEJdCjKjMT Gi8Ey5B1qXOh08lx8j6oaJpJqxWTA3vwHr6GVASM1CMrCL0OxSNerErshCoS61qigfio3G3tjsP iN5OKw36P2Y07g6O/CBAAohKGwf9WsuIbo4TSgnzmAdbFVjrkCRlf5JxrMKklnDzQ3vcWt4/1DU ldY8WacF60DIvv665L/AL0DJDB1quib2S8XiRwZB8op/0aHmpuNmFyMYPY5yjGQiQfR6IY+YD/v +j5pnS8hLvC+SVuukXF39h+11kqDr5KmHSRc4PyOMWDBzoJk9YF1iVV+fu0abxgjcBoBbSImolu op4NdNhd8KVcKxtO6XUi81hWXPhfi4rPFCLRUkZRaIFOqAa86SpnTHMgeGVYwQUBqHNxDKjq93R Cqi61cZFNDQPMBn2Qsx+eKtFjWgh5zsTHU3pP6h2GnaAcZOZ7okUVazSm2IKSnH+YoBXIpBMurP Mf6XTMY9JMiIUN7cNY2X9HQlATDd/6pGCiNtam40wg4eTxF7Q1QsIZOiGQXtI6cP+9RTKCu7O8J H+om1zDOye+IoVb94wWOE0CAoZfWVZI9NC30lp2MTlgKy+EiU05JZTxmPTP6ig0= X-Received: by 2002:a17:903:1cc:b0:2e8:4040:792b with SMTP id d9443c01a7336-2f1ba16efb3mr81651195ad.22.1796582670768; Sun, 06 Dec 2026 10:44:30 -0800 (PST) Return-Path: Received: from localhost.localdomain ([108.180.159.198]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f1b791c626sm36011495ad.35.2026.12.06.10.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2026 10:44:30 -0800 (PST) From: Babanpreet Singh To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Babanpreet Singh Subject: [meta-oe][PATCH 8/8] pg-repack: add recipe Date: Sun, 6 Dec 2026 18:44:18 +0000 Message-ID: <20261206184418.7-9-bbnpreetsingh@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261206184418.7-1-bbnpreetsingh@gmail.com> References: <20261206184418.7-1-bbnpreetsingh@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 06 Dec 2026 18:44:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134160 pg_repack reorganizes PostgreSQL tables and indexes with minimal locks. Signed-off-by: Babanpreet Singh --- .../include/ptest-packagelists-meta-oe.inc | 1 + .../pg-repack/create-tablespaces.out | 5 +++ .../pg-repack/create-tablespaces.sql | 5 +++ .../recipes-dbs/pg-repack/pg-repack_git.bb | 31 +++++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.out create mode 100644 meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.sql create mode 100644 meta-oe/recipes-dbs/pg-repack/pg-repack_git.bb diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc index 2d6deffefb..7191a96765 100644 --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc @@ -88,6 +88,7 @@ PTESTS_SLOW_META_OE = "\ libusb-compat \ mariadb \ pg-hint-plan \ + pg-repack \ postgresql \ postgresql-hll \ re2 \ diff --git a/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.out b/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.out new file mode 100644 index 0000000000..144ae20704 --- /dev/null +++ b/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.out @@ -0,0 +1,5 @@ +SET allow_in_place_tablespaces = true; +CREATE TABLESPACE testts LOCATION ''; +CREATE TABLESPACE "1testts" LOCATION ''; +CREATE TABLESPACE "test ts" LOCATION ''; +CREATE TABLESPACE "test""ts" LOCATION ''; diff --git a/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.sql b/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.sql new file mode 100644 index 0000000000..144ae20704 --- /dev/null +++ b/meta-oe/recipes-dbs/pg-repack/pg-repack/create-tablespaces.sql @@ -0,0 +1,5 @@ +SET allow_in_place_tablespaces = true; +CREATE TABLESPACE testts LOCATION ''; +CREATE TABLESPACE "1testts" LOCATION ''; +CREATE TABLESPACE "test ts" LOCATION ''; +CREATE TABLESPACE "test""ts" LOCATION ''; diff --git a/meta-oe/recipes-dbs/pg-repack/pg-repack_git.bb b/meta-oe/recipes-dbs/pg-repack/pg-repack_git.bb new file mode 100644 index 0000000000..cca9c9be07 --- /dev/null +++ b/meta-oe/recipes-dbs/pg-repack/pg-repack_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Reorganize PostgreSQL tables with minimal locks" +DESCRIPTION = "pg_repack removes bloat from tables and indexes, and can \ +restore the physical order of clustered indexes, without holding an \ +exclusive lock on the table while it works. It is a PostgreSQL \ +extension together with the pg_repack client program." +HOMEPAGE = "https://reorg.github.io/pg_repack/" +BUGTRACKER = "https://github.com/reorg/pg_repack/issues" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=809c5aa034ea3a382a8a6209a730a193" + +SRC_URI = "git://github.com/reorg/pg_repack.git;protocol=https;branch=master \ + file://create-tablespaces.sql \ + file://create-tablespaces.out \ + " +SRCREV = "bdf2ce2b53b7faa5963dc0c3d0b6405d98ff1c01" +PV = "1.5.3+git" + +UPSTREAM_CHECK_GITTAGREGEX = "ver_(?P\d+(\.\d+)+)" + +inherit ptest-pgxs + +EXTRA_OEMAKE:append = " PG_LIBS='$(libpq)'" + +PTEST_PGXS_DIR = "regress" +PTEST_PGXS_CONF = "wal_level = logical" + +do_install_ptest:append() { + install -m 0644 ${UNPACKDIR}/create-tablespaces.sql ${D}${PTEST_PATH}/tests/sql/ + install -m 0644 ${UNPACKDIR}/create-tablespaces.out ${D}${PTEST_PATH}/tests/expected/ + sed -i 's/^REGRESS="/REGRESS="create-tablespaces /' ${D}${PTEST_PATH}/ptest-pgxs.vars +}