diff options
Diffstat (limited to 'meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch')
| -rw-r--r-- | meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch new file mode 100644 index 0000000000..af36da4927 --- /dev/null +++ b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | From 1a8b94140988d2ee5ff987b0bb3e7c3e936b8c01 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 5/5] 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 | diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out | ||
| 22 | index 001c6e7..8256898 100644 | ||
| 23 | --- a/src/test/regress/expected/sysviews.out | ||
| 24 | +++ b/src/test/regress/expected/sysviews.out | ||
| 25 | @@ -29,7 +29,7 @@ select name, ident, parent, level, total_bytes >= free_bytes | ||
| 26 | (1 row) | ||
| 27 | |||
| 28 | -- At introduction, pg_config had 23 entries; it may grow | ||
| 29 | -select count(*) > 20 as ok from pg_config; | ||
| 30 | +select count(*) > 13 as ok from pg_config; | ||
| 31 | ok | ||
| 32 | ---- | ||
| 33 | t | ||
| 34 | diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql | ||
| 35 | index 351e469..84c113e 100644 | ||
| 36 | --- a/src/test/regress/sql/sysviews.sql | ||
| 37 | +++ b/src/test/regress/sql/sysviews.sql | ||
| 38 | @@ -18,7 +18,7 @@ select name, ident, parent, level, total_bytes >= free_bytes | ||
| 39 | from pg_backend_memory_contexts where level = 0; | ||
| 40 | |||
| 41 | -- At introduction, pg_config had 23 entries; it may grow | ||
| 42 | -select count(*) > 20 as ok from pg_config; | ||
| 43 | +select count(*) > 13 as ok from pg_config; | ||
| 44 | |||
| 45 | -- We expect no cursors in this test; see also portals.sql | ||
| 46 | select count(*) = 0 as ok from pg_cursors; | ||
| 47 | -- | ||
| 48 | 2.25.1 | ||
| 49 | |||
