Skip to content

Commit e809493

Browse files
committed
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 dfb75e4: it neglected to call check_input() for system_constraints.sql. Discussion: https://postgr.es/m/3956760.1618529139@sss.pgh.pa.us
1 parent 3c5b068 commit e809493

File tree

4 files changed

+401
-381
lines changed

4 files changed

+401
-381
lines changed

src/backend/catalog/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ $(top_builddir)/src/include/catalog/header-stamp: bki-stamp
122122
install-data: bki-stamp installdirs
123123
$(INSTALL_DATA) $(call vpathsearch,postgres.bki) '$(DESTDIR)$(datadir)/postgres.bki'
124124
$(INSTALL_DATA) $(call vpathsearch,system_constraints.sql) '$(DESTDIR)$(datadir)/system_constraints.sql'
125+
$(INSTALL_DATA) $(srcdir)/system_functions.sql '$(DESTDIR)$(datadir)/system_functions.sql'
125126
$(INSTALL_DATA) $(srcdir)/system_views.sql '$(DESTDIR)$(datadir)/system_views.sql'
126127
$(INSTALL_DATA) $(srcdir)/information_schema.sql '$(DESTDIR)$(datadir)/information_schema.sql'
127128
$(INSTALL_DATA) $(srcdir)/sql_features.txt '$(DESTDIR)$(datadir)/sql_features.txt'
@@ -131,7 +132,7 @@ installdirs:
131132

132133
.PHONY: uninstall-data
133134
uninstall-data:
134-
rm -f $(addprefix '$(DESTDIR)$(datadir)'/, postgres.bki system_constraints.sql system_views.sql information_schema.sql sql_features.txt)
135+
rm -f $(addprefix '$(DESTDIR)$(datadir)'/, postgres.bki system_constraints.sql system_functions.sql system_views.sql information_schema.sql sql_features.txt)
135136

136137
# postgres.bki, system_constraints.sql, and the generated headers are
137138
# in the distribution tarball, so they are not cleaned here.

0 commit comments

Comments
 (0)