propagate_statistics test failure(#8310).

PG vanilla commit ab16418ee0e changed StatisticsObjIsVisible logic, so
output for temp objects in propogate_statistic test was changed. Fixed
normalized.sed for this.
pull/8311/head
Maksim Melnikov 2025-10-31 15:59:37 +03:00
parent f5b7c0abc3
commit 20b33deace
2 changed files with 2 additions and 1 deletions

View File

@ -248,6 +248,7 @@ s/Error on node with node id [0-9]+/Error on node with node id xxxxx/g
# will be replaced with
# WARNING: "function pg_temp_xxx.f(bigint)" has dependency on unsupported object "<foo>"
s/^(WARNING|ERROR)(: "[a-z\ ]+ )pg_temp_[0-9]+(\..*" has dependency on unsupported object ".*")$/\1\2pg_temp_xxx\3/g
s/^(WARNING|ERROR)(: "[a-z\ ]+ )pg_temp_[0-9]+(\..*" has dependency on unsupported object "schema .*")$/\1\2pg_temp_xxx\3/g
# 2) Schema of the depending object in the error detail:
s/^(DETAIL: "[a-z\ ]+ )pg_temp_[0-9]+(\..*" will be created only locally)$/\1pg_temp_xxx\2/g

View File

@ -16,7 +16,7 @@ SELECT create_distributed_table('test_stats', 'a');
(1 row)
CREATE STATISTICS pg_temp.s1 (dependencies) ON a, b FROM test_stats;
ERROR: "statistics object s1" has dependency on unsupported object "schema pg_temp_xxx"
ERROR: "statistics object pg_temp_xxx.s1" has dependency on unsupported object "schema pg_temp_xxx"
CREATE STATISTICS s1 (dependencies) ON a, b FROM test_stats;
-- test for distributing an already existing statistics
CREATE TABLE "test'stats2" (