summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
diff options
context:
space:
mode:
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.patch49
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 @@
1From 1a8b94140988d2ee5ff987b0bb3e7c3e936b8c01 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 5/5] 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
21diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out
22index 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
34diff --git a/src/test/regress/sql/sysviews.sql b/src/test/regress/sql/sysviews.sql
35index 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--
482.25.1
49