On Mon, Dec 17, 2018 at 03:40:28PM +0900, Michael Paquier wrote: > I was just going through some of the tests, when I noticed that the > tests of partition_info.sql have two typos and that the last set of > tests is imprecise about the expected behavior of the functions. > > Do you think that something like the attached is an improvement?
Meuh. Patch forgotten. -- Michael
diff --git a/src/test/regress/expected/partition_info.out b/src/test/regress/expected/partition_info.out index 202d820827..6bd2d96fb6 100644 --- a/src/test/regress/expected/partition_info.out +++ b/src/test/regress/expected/partition_info.out @@ -99,7 +99,7 @@ SELECT relid, parentrelid, level, isleaf (1 row) DROP TABLE ptif_test; --- A table not part of a partition tree works is the only member listed. +-- A table not part of a partition tree is the only member listed. CREATE TABLE ptif_normal_table(a int); SELECT relid, parentrelid, level, isleaf FROM pg_partition_tree('ptif_normal_table'); @@ -109,7 +109,8 @@ SELECT relid, parentrelid, level, isleaf (1 row) DROP TABLE ptif_normal_table; --- Views and materialized viewS cannot be part of a partition tree. +-- Views and materialized views are not part of a partition tree, +-- causing the functions to return NULL. CREATE VIEW ptif_test_view AS SELECT 1; CREATE MATERIALIZED VIEW ptif_test_matview AS SELECT 1; SELECT * FROM pg_partition_tree('ptif_test_view'); diff --git a/src/test/regress/sql/partition_info.sql b/src/test/regress/sql/partition_info.sql index 9b55a7fe5c..0a491d295e 100644 --- a/src/test/regress/sql/partition_info.sql +++ b/src/test/regress/sql/partition_info.sql @@ -54,13 +54,14 @@ SELECT relid, parentrelid, level, isleaf DROP TABLE ptif_test; --- A table not part of a partition tree works is the only member listed. +-- A table not part of a partition tree is the only member listed. CREATE TABLE ptif_normal_table(a int); SELECT relid, parentrelid, level, isleaf FROM pg_partition_tree('ptif_normal_table'); DROP TABLE ptif_normal_table; --- Views and materialized viewS cannot be part of a partition tree. +-- Views and materialized views are not part of a partition tree, +-- causing the functions to return NULL. CREATE VIEW ptif_test_view AS SELECT 1; CREATE MATERIALIZED VIEW ptif_test_matview AS SELECT 1; SELECT * FROM pg_partition_tree('ptif_test_view');
signature.asc
Description: PGP signature