diff options
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb | 1 | 
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch new file mode 100644 index 0000000000..4db36d26fd --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0001-postgresql-fix-ptest-failure-of-sysviews.patch  | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 9f81377dddfe32d950844d7053020a36b40fce08 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Manoj Saun <manojsingh.saun@windriver.com> | ||
| 3 | Date: Wed, 22 Mar 2023 08:07:26 +0000 | ||
| 4 | Subject: [PATCH] postgresql: fix ptest failure of sysviews | ||
| 5 | |||
| 6 | The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info | ||
| 7 | in pg_config table which reduces the count of rows from pg_config and leads to | ||
| 8 | sysviews test failure. | ||
| 9 | To fix it we need to reduce the count of parameters in sysviews test. | ||
| 10 | Also we need to reduce the row count in expected result of sysview test | ||
| 11 | to make the test output shown as pass. | ||
| 12 | |||
| 13 | Upstream-Status: Inappropriate [oe specific] | ||
| 14 | |||
| 15 | Signed-off-by: Manoj Saun <manojsingh.saun@windriver.com> | ||
| 16 | --- | ||
| 17 | src/test/regress/expected/sysviews.out | 2 +- | ||
| 18 | src/test/regress/sql/sysviews.sql | 2 +- | ||
| 19 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 20 | |||
| 21 | --- a/src/test/regress/expected/sysviews.out | ||
| 22 | +++ b/src/test/regress/expected/sysviews.out | ||
| 23 | @@ -29,7 +29,7 @@ select name, ident, parent, level, total | ||
| 24 | (1 row) | ||
| 25 | |||
| 26 | -- At introduction, pg_config had 23 entries; it may grow | ||
| 27 | -select count(*) > 20 as ok from pg_config; | ||
| 28 | +select count(*) > 13 as ok from pg_config; | ||
| 29 | ok | ||
| 30 | ---- | ||
| 31 | t | ||
| 32 | --- a/src/test/regress/sql/sysviews.sql | ||
| 33 | +++ b/src/test/regress/sql/sysviews.sql | ||
| 34 | @@ -18,7 +18,7 @@ select name, ident, parent, level, total | ||
| 35 | from pg_backend_memory_contexts where level = 0; | ||
| 36 | |||
| 37 | -- At introduction, pg_config had 23 entries; it may grow | ||
| 38 | -select count(*) > 20 as ok from pg_config; | ||
| 39 | +select count(*) > 13 as ok from pg_config; | ||
| 40 | |||
| 41 | -- We expect no cursors in this test; see also portals.sql | ||
| 42 | select count(*) = 0 as ok from pg_cursors; | ||
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb index befb0caec0..5c95e4da32 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb +++ b/meta-oe/recipes-dbs/postgresql/postgresql_15.2.bb  | |||
| @@ -8,6 +8,7 @@ SRC_URI += "\ | |||
| 8 | file://0001-Improve-reproducibility.patch \ | 8 | file://0001-Improve-reproducibility.patch \ | 
| 9 | file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \ | 9 | file://0001-configure.ac-bypass-autoconf-2.69-version-check.patch \ | 
| 10 | file://0001-config_info.c-not-expose-build-info.patch \ | 10 | file://0001-config_info.c-not-expose-build-info.patch \ | 
| 11 | file://0001-postgresql-fix-ptest-failure-of-sysviews.patch \ | ||
| 11 | " | 12 | " | 
| 12 | 13 | ||
| 13 | SRC_URI[sha256sum] = "99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7" | 14 | SRC_URI[sha256sum] = "99a2171fc3d6b5b5f56b757a7a3cb85d509a38e4273805def23941ed2b8468c7" | 
