Rename create_function_N test scripts for clarity.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Feb 2022 20:40:08 +0000 (15:40 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Feb 2022 20:40:08 +0000 (15:40 -0500)
Rename create_function_0 to create_function_c, and create_function_3
to create_function_sql, to establish their charters more clearly.
This should also reduce confusion versus our underscore-digit
convention for naming variant expected-files.

I separated this from the previous commit on the premise that keeping
the renaming distinct might make "git blame" tracking easier.

Discussion: https://postgr.es/m/1114748.1640383217@sss.pgh.pa.us

src/test/regress/expected/create_function_c.out [moved from src/test/regress/expected/create_function_0.out with 98% similarity]
src/test/regress/expected/create_function_sql.out [moved from src/test/regress/expected/create_function_3.out with 99% similarity]
src/test/regress/parallel_schedule
src/test/regress/sql/create_function_c.sql [moved from src/test/regress/sql/create_function_0.sql with 98% similarity]
src/test/regress/sql/create_function_sql.sql [moved from src/test/regress/sql/create_function_3.sql with 99% similarity]

similarity index 98%
rename from src/test/regress/expected/create_function_0.out
rename to src/test/regress/expected/create_function_c.out
index ed674af971c3fb879a57649b616bfe7f5d9a237a..2dba9d703492eb3aad6af023d202c03917030a67 100644 (file)
@@ -1,5 +1,5 @@
 --
--- CREATE_FUNCTION_0
+-- CREATE_FUNCTION_C
 --
 -- This script used to create C functions for other scripts to use.
 -- But to get rid of the ordering dependencies that caused, such
similarity index 99%
rename from src/test/regress/expected/create_function_3.out
rename to src/test/regress/expected/create_function_sql.out
index 1e2dfd87d309d848d8c6bee66558f62751d06131..f956955464828ba1cd1aef89efdf2cbd469dd625 100644 (file)
@@ -1,5 +1,5 @@
 --
--- CREATE FUNCTION
+-- CREATE_FUNCTION_SQL
 --
 -- Assorted tests using SQL-language functions
 --
index 82feda6eb183af89294da0b6314d463e69dcbe40..6d8f524ae9ebdf1a5a29ea45fe350dbee0cdb1a8 100644 (file)
@@ -47,13 +47,13 @@ test: copy copyselect copydml insert insert_conflict
 # More groups of parallel tests
 # Note: many of the tests in later groups depend on create_index
 # ----------
-test: create_function_0 create_misc create_operator create_procedure create_table create_type
+test: create_function_c create_misc create_operator create_procedure create_table create_type
 test: create_index create_index_spgist create_view index_including index_including_gist
 
 # ----------
 # Another group of parallel tests
 # ----------
-test: create_aggregate create_function_3 create_cast constraints triggers select inherit typed_table vacuum drop_if_exists updatable_views roleattributes create_am hash_func errors infinite_recurse
+test: create_aggregate create_function_sql create_cast constraints triggers select inherit typed_table vacuum drop_if_exists updatable_views roleattributes create_am hash_func errors infinite_recurse
 
 # ----------
 # sanity_check does a vacuum, affecting the sort order of SELECT *
similarity index 98%
rename from src/test/regress/sql/create_function_0.sql
rename to src/test/regress/sql/create_function_c.sql
index 54da95f249473ffdb55f6e9b77a4569a89aecb08..2e5a390a5614221346128c4ed51a6f8371701563 100644 (file)
@@ -1,5 +1,5 @@
 --
--- CREATE_FUNCTION_0
+-- CREATE_FUNCTION_C
 --
 -- This script used to create C functions for other scripts to use.
 -- But to get rid of the ordering dependencies that caused, such
similarity index 99%
rename from src/test/regress/sql/create_function_3.sql
rename to src/test/regress/sql/create_function_sql.sql
index 254f444d94d3f50de95a1da0ba04a1fb4f037c91..4512456eae2bc51ef188222877c8f60511450088 100644 (file)
@@ -1,5 +1,5 @@
 --
--- CREATE FUNCTION
+-- CREATE_FUNCTION_SQL
 --
 -- Assorted tests using SQL-language functions
 --