blob: 4db36d26fd3c350a8d252dd51d60262a7866a741 [file] [log] [blame]
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05001From 9f81377dddfe32d950844d7053020a36b40fce08 Mon Sep 17 00:00:00 2001
2From: Manoj Saun <manojsingh.saun@windriver.com>
3Date: Wed, 22 Mar 2023 08:07:26 +0000
4Subject: [PATCH] postgresql: fix ptest failure of sysviews
5
6The patch "0001-config_info.c-not-expose-build-info.patch" hides the debug info
7in pg_config table which reduces the count of rows from pg_config and leads to
8sysviews test failure.
9To fix it we need to reduce the count of parameters in sysviews test.
10Also we need to reduce the row count in expected result of sysview test
11to make the test output shown as pass.
12
13Upstream-Status: Inappropriate [oe specific]
14
15Signed-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;