Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 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; |