summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorTom Lane2021-04-16 22:20:42 +0000
committerTom Lane2021-04-16 22:37:02 +0000
commite80949372564c126c92aa7d64de483e04c0ef95e (patch)
treea58ee2cf17881756a9c0722b53af6d9a49f646b1 /src/bin
parent3c5b0685b921533f37622345beb0f8dd49200c01 (diff)
Split function definitions out of system_views.sql into a new file.
Invent system_functions.sql to carry the function definitions that were formerly in system_views.sql. The function definitions were already a quarter of the file and are about to be more, so it seems appropriate to give them their own home. In passing, fix an oversight in dfb75e478: it neglected to call check_input() for system_constraints.sql. Discussion: https://postgr.es/m/3956760.1618529139@sss.pgh.pa.us
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/initdb/initdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 4500df6fc8a..152d21e88bd 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -160,6 +160,7 @@ static char *dictionary_file;
static char *info_schema_file;
static char *features_file;
static char *system_constraints_file;
+static char *system_functions_file;
static char *system_views_file;
static bool success = false;
static bool made_new_pgdata = false;
@@ -2506,6 +2507,7 @@ setup_data_file_paths(void)
set_input(&info_schema_file, "information_schema.sql");
set_input(&features_file, "sql_features.txt");
set_input(&system_constraints_file, "system_constraints.sql");
+ set_input(&system_functions_file, "system_functions.sql");
set_input(&system_views_file, "system_views.sql");
if (show_setting || debug)
@@ -2532,6 +2534,8 @@ setup_data_file_paths(void)
check_input(dictionary_file);
check_input(info_schema_file);
check_input(features_file);
+ check_input(system_constraints_file);
+ check_input(system_functions_file);
check_input(system_views_file);
}
@@ -2869,6 +2873,8 @@ initialize_data_directory(void)
setup_run_file(cmdfd, system_constraints_file);
+ setup_run_file(cmdfd, system_functions_file);
+
setup_depend(cmdfd);
/*