-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests of the contrib extensions (#10392)
## Problem We don't test the extensions, shipped with contrib ## Summary of changes The tests are now running
- Loading branch information
1 parent
4d2c2e9
commit bf6d5e9
Showing
6 changed files
with
469 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
diff --git a/contrib/amcheck/expected/check_heap.out b/contrib/amcheck/expected/check_heap.out | ||
index 979e5e8..2375b45 100644 | ||
--- a/contrib/amcheck/expected/check_heap.out | ||
+++ b/contrib/amcheck/expected/check_heap.out | ||
@@ -80,12 +80,9 @@ INSERT INTO heaptest (a, b) | ||
-- same transaction. The heaptest table is smaller than the default | ||
-- wal_skip_threshold, so a wal_level=minimal commit reads the table into | ||
-- shared_buffers. A transaction delays that and excludes any autovacuum. | ||
-SET allow_in_place_tablespaces = true; | ||
-CREATE TABLESPACE regress_test_stats_tblspc LOCATION ''; | ||
SELECT sum(reads) AS stats_bulkreads_before | ||
FROM pg_stat_io WHERE context = 'bulkread' \gset | ||
BEGIN; | ||
-ALTER TABLE heaptest SET TABLESPACE regress_test_stats_tblspc; | ||
-- Check that valid options are not rejected nor corruption reported | ||
-- for a non-empty table | ||
SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); | ||
@@ -118,14 +115,6 @@ SELECT pg_stat_force_next_flush(); | ||
|
||
(1 row) | ||
|
||
-SELECT sum(reads) AS stats_bulkreads_after | ||
- FROM pg_stat_io WHERE context = 'bulkread' \gset | ||
-SELECT :stats_bulkreads_after > :stats_bulkreads_before; | ||
- ?column? | ||
----------- | ||
- t | ||
-(1 row) | ||
- | ||
CREATE ROLE regress_heaptest_role; | ||
-- verify permissions are checked (error due to function not callable) | ||
SET ROLE regress_heaptest_role; | ||
@@ -233,7 +222,6 @@ ERROR: cannot check relation "test_foreign_table" | ||
DETAIL: This operation is not supported for foreign tables. | ||
-- cleanup | ||
DROP TABLE heaptest; | ||
-DROP TABLESPACE regress_test_stats_tblspc; | ||
DROP TABLE test_partition; | ||
DROP TABLE test_partitioned; | ||
DROP OWNED BY regress_heaptest_role; -- permissions | ||
diff --git a/contrib/amcheck/sql/check_heap.sql b/contrib/amcheck/sql/check_heap.sql | ||
index 1745bae..3b429c3 100644 | ||
--- a/contrib/amcheck/sql/check_heap.sql | ||
+++ b/contrib/amcheck/sql/check_heap.sql | ||
@@ -40,12 +40,9 @@ INSERT INTO heaptest (a, b) | ||
-- same transaction. The heaptest table is smaller than the default | ||
-- wal_skip_threshold, so a wal_level=minimal commit reads the table into | ||
-- shared_buffers. A transaction delays that and excludes any autovacuum. | ||
-SET allow_in_place_tablespaces = true; | ||
-CREATE TABLESPACE regress_test_stats_tblspc LOCATION ''; | ||
SELECT sum(reads) AS stats_bulkreads_before | ||
FROM pg_stat_io WHERE context = 'bulkread' \gset | ||
BEGIN; | ||
-ALTER TABLE heaptest SET TABLESPACE regress_test_stats_tblspc; | ||
-- Check that valid options are not rejected nor corruption reported | ||
-- for a non-empty table | ||
SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); | ||
@@ -58,9 +55,6 @@ COMMIT; | ||
-- ALTER TABLE ... SET TABLESPACE ... | ||
-- causing an additional bulkread, which should be reflected in pg_stat_io. | ||
SELECT pg_stat_force_next_flush(); | ||
-SELECT sum(reads) AS stats_bulkreads_after | ||
- FROM pg_stat_io WHERE context = 'bulkread' \gset | ||
-SELECT :stats_bulkreads_after > :stats_bulkreads_before; | ||
|
||
CREATE ROLE regress_heaptest_role; | ||
|
||
@@ -140,7 +134,6 @@ SELECT * FROM verify_heapam('test_foreign_table', | ||
|
||
-- cleanup | ||
DROP TABLE heaptest; | ||
-DROP TABLESPACE regress_test_stats_tblspc; | ||
DROP TABLE test_partition; | ||
DROP TABLE test_partitioned; | ||
DROP OWNED BY regress_heaptest_role; -- permissions | ||
diff --git a/contrib/citext/expected/create_index_acl.out b/contrib/citext/expected/create_index_acl.out | ||
index 33be13a..70a406c 100644 | ||
--- a/contrib/citext/expected/create_index_acl.out | ||
+++ b/contrib/citext/expected/create_index_acl.out | ||
@@ -5,9 +5,6 @@ | ||
-- owner having as few applicable privileges as possible. (The privileges.sql | ||
-- regress_sro_user tests look for the opposite defect; they confirm that | ||
-- DefineIndex() uses the table owner userid where necessary.) | ||
-SET allow_in_place_tablespaces = true; | ||
-CREATE TABLESPACE regress_create_idx_tblspace LOCATION ''; | ||
-RESET allow_in_place_tablespaces; | ||
BEGIN; | ||
CREATE ROLE regress_minimal; | ||
CREATE SCHEMA s; | ||
@@ -49,11 +46,9 @@ ALTER TABLE s.x OWNER TO regress_minimal; | ||
-- Empty-table DefineIndex() | ||
CREATE UNIQUE INDEX u0rows ON s.x USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll s.citext_pattern_ops) | ||
- TABLESPACE regress_create_idx_tblspace | ||
WHERE s.index_row_if(y); | ||
ALTER TABLE s.x ADD CONSTRAINT e0rows EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
-- Make the table nonempty. | ||
INSERT INTO s.x VALUES ('foo'), ('bar'); | ||
@@ -66,11 +61,9 @@ RESET search_path; | ||
GRANT EXECUTE ON FUNCTION s.index_this_expr TO regress_minimal; | ||
CREATE UNIQUE INDEX u2rows ON s.x USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll s.citext_pattern_ops) | ||
- TABLESPACE regress_create_idx_tblspace | ||
WHERE s.index_row_if(y); | ||
ALTER TABLE s.x ADD CONSTRAINT e2rows EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
-- Shall not find s.coll via search_path, despite the s.const->public.setter | ||
-- call having set search_path=s during expression planning. Suppress the | ||
@@ -78,9 +71,7 @@ ALTER TABLE s.x ADD CONSTRAINT e2rows EXCLUDE USING btree | ||
\set VERBOSITY sqlstate | ||
ALTER TABLE s.x ADD CONSTRAINT underqualified EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
ERROR: 42704 | ||
\set VERBOSITY default | ||
ROLLBACK; | ||
-DROP TABLESPACE regress_create_idx_tblspace; | ||
diff --git a/contrib/citext/sql/create_index_acl.sql b/contrib/citext/sql/create_index_acl.sql | ||
index 10b5225..ae442e1 100644 | ||
--- a/contrib/citext/sql/create_index_acl.sql | ||
+++ b/contrib/citext/sql/create_index_acl.sql | ||
@@ -6,10 +6,6 @@ | ||
-- regress_sro_user tests look for the opposite defect; they confirm that | ||
-- DefineIndex() uses the table owner userid where necessary.) | ||
|
||
-SET allow_in_place_tablespaces = true; | ||
-CREATE TABLESPACE regress_create_idx_tblspace LOCATION ''; | ||
-RESET allow_in_place_tablespaces; | ||
- | ||
BEGIN; | ||
CREATE ROLE regress_minimal; | ||
CREATE SCHEMA s; | ||
@@ -51,11 +47,9 @@ ALTER TABLE s.x OWNER TO regress_minimal; | ||
-- Empty-table DefineIndex() | ||
CREATE UNIQUE INDEX u0rows ON s.x USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll s.citext_pattern_ops) | ||
- TABLESPACE regress_create_idx_tblspace | ||
WHERE s.index_row_if(y); | ||
ALTER TABLE s.x ADD CONSTRAINT e0rows EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
-- Make the table nonempty. | ||
INSERT INTO s.x VALUES ('foo'), ('bar'); | ||
@@ -68,11 +62,9 @@ RESET search_path; | ||
GRANT EXECUTE ON FUNCTION s.index_this_expr TO regress_minimal; | ||
CREATE UNIQUE INDEX u2rows ON s.x USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll s.citext_pattern_ops) | ||
- TABLESPACE regress_create_idx_tblspace | ||
WHERE s.index_row_if(y); | ||
ALTER TABLE s.x ADD CONSTRAINT e2rows EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE s.coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
-- Shall not find s.coll via search_path, despite the s.const->public.setter | ||
-- call having set search_path=s during expression planning. Suppress the | ||
@@ -80,9 +72,7 @@ ALTER TABLE s.x ADD CONSTRAINT e2rows EXCLUDE USING btree | ||
\set VERBOSITY sqlstate | ||
ALTER TABLE s.x ADD CONSTRAINT underqualified EXCLUDE USING btree | ||
((s.index_this_expr(y, s.const())) COLLATE coll WITH s.=) | ||
- USING INDEX TABLESPACE regress_create_idx_tblspace | ||
WHERE (s.index_row_if(y)); | ||
\set VERBOSITY default | ||
ROLLBACK; | ||
|
||
-DROP TABLESPACE regress_create_idx_tblspace; | ||
diff --git a/contrib/file_fdw/expected/file_fdw.out b/contrib/file_fdw/expected/file_fdw.out | ||
index 72304e0..ebe131b 100644 | ||
--- a/contrib/file_fdw/expected/file_fdw.out | ||
+++ b/contrib/file_fdw/expected/file_fdw.out | ||
@@ -4,6 +4,7 @@ | ||
-- directory paths are passed to us in environment variables | ||
\getenv abs_srcdir PG_ABS_SRCDIR | ||
-- Clean up in case a prior regression run failed | ||
+SET compute_query_id TO 'off'; | ||
SET client_min_messages TO 'warning'; | ||
DROP ROLE IF EXISTS regress_file_fdw_superuser, regress_file_fdw_user, regress_no_priv_user; | ||
RESET client_min_messages; | ||
diff --git a/contrib/file_fdw/sql/file_fdw.sql b/contrib/file_fdw/sql/file_fdw.sql | ||
index f0548e1..848a08c 100644 | ||
--- a/contrib/file_fdw/sql/file_fdw.sql | ||
+++ b/contrib/file_fdw/sql/file_fdw.sql | ||
@@ -6,6 +6,7 @@ | ||
\getenv abs_srcdir PG_ABS_SRCDIR | ||
|
||
-- Clean up in case a prior regression run failed | ||
+SET compute_query_id TO 'off'; | ||
SET client_min_messages TO 'warning'; | ||
DROP ROLE IF EXISTS regress_file_fdw_superuser, regress_file_fdw_user, regress_no_priv_user; | ||
RESET client_min_messages; | ||
diff --git a/contrib/pageinspect/expected/gist.out b/contrib/pageinspect/expected/gist.out | ||
index d1adbab..38b52ac 100644 | ||
--- a/contrib/pageinspect/expected/gist.out | ||
+++ b/contrib/pageinspect/expected/gist.out | ||
@@ -10,25 +10,6 @@ BEGIN; | ||
CREATE TABLE test_gist AS SELECT point(i,i) p, i::text t FROM | ||
generate_series(1,1000) i; | ||
CREATE INDEX test_gist_idx ON test_gist USING gist (p); | ||
--- Page 0 is the root, the rest are leaf pages | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 0)); | ||
- lsn | nsn | rightlink | flags | ||
------+-----+------------+------- | ||
- 0/1 | 0/0 | 4294967295 | {} | ||
-(1 row) | ||
- | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 1)); | ||
- lsn | nsn | rightlink | flags | ||
------+-----+------------+-------- | ||
- 0/1 | 0/0 | 4294967295 | {leaf} | ||
-(1 row) | ||
- | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 2)); | ||
- lsn | nsn | rightlink | flags | ||
------+-----+-----------+-------- | ||
- 0/1 | 0/0 | 1 | {leaf} | ||
-(1 row) | ||
- | ||
COMMIT; | ||
SELECT * FROM gist_page_items(get_raw_page('test_gist_idx', 0), 'test_gist_idx'); | ||
itemoffset | ctid | itemlen | dead | keys | ||
diff --git a/contrib/pageinspect/sql/gist.sql b/contrib/pageinspect/sql/gist.sql | ||
index d263542..607992f 100644 | ||
--- a/contrib/pageinspect/sql/gist.sql | ||
+++ b/contrib/pageinspect/sql/gist.sql | ||
@@ -12,11 +12,6 @@ CREATE TABLE test_gist AS SELECT point(i,i) p, i::text t FROM | ||
generate_series(1,1000) i; | ||
CREATE INDEX test_gist_idx ON test_gist USING gist (p); | ||
|
||
--- Page 0 is the root, the rest are leaf pages | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 0)); | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 1)); | ||
-SELECT * FROM gist_page_opaque_info(get_raw_page('test_gist_idx', 2)); | ||
- | ||
COMMIT; | ||
|
||
SELECT * FROM gist_page_items(get_raw_page('test_gist_idx', 0), 'test_gist_idx'); |
Oops, something went wrong.
bf6d5e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7565 tests run: 7203 passed, 1 failed, 361 skipped (full report)
Failures on Postgres 16
test_layer_map[github-actions-selfhosted]
: release-x86-64-with-lfcFlaky tests (7)
Postgres 17
test_pgdata_import_smoke[8-1024-RelBlockSize.MULTIPLE_RELATION_SEGMENTS]
: debug-x86-64-without-lfc, release-arm64-with-lfc, release-arm64-without-lfctest_pgdata_import_smoke[None-1024-RelBlockSize.MULTIPLE_RELATION_SEGMENTS]
: debug-x86-64-without-lfc, release-arm64-without-lfc, release-arm64-with-lfcPostgres 14
test_scrubber_tenant_snapshot[4]
: release-arm64-with-lfcCode coverage* (full report)
functions
:33.3% (8511 of 25522 functions)
lines
:49.1% (71480 of 145514 lines)
* collected from Rust tests only
bf6d5e9 at 2025-01-30T21:55:58.384Z :recycle: