From 4baf5fff27f9d362e26cfe83e8c4892d6a9ab565 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc kop@karlpinc.com" Date: Sat, 14 Feb 2026 23:05:57 +0000 Subject: [PATCH] Ensure gen_func_comment_tmpl() is installed for recreate-db target Dropping the schemas drops the function, and it needs to be re-installed. --- make_files/make_db.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make_files/make_db.mk b/make_files/make_db.mk index 961ff22..e2dfd94 100644 --- a/make_files/make_db.mk +++ b/make_files/make_db.mk @@ -187,6 +187,8 @@ recreate-db: destroy-db install-db ## destroy-db Drop all the database objects, individually # This drops each individual database object, then the schemas. +# Finally, remove the breadcrumb that says our comment helper function +# is installed. # Because $? is used, and we've "extra" dependencies, we need a level of # indirection. .PHONY: destroy-db @@ -199,6 +201,7 @@ do-destroy-db: $(DROP_SUB_DB_TARGETS) $(DROP_DB_TARGETS) ( $(PSQL_SETUP) \ echo 'VACUUM;' ; ) \ | psql $(PSQL_ARGS) $(VACUUM_CLEANUP) + rm -f $(SCHEMA_DB_CACHE)/gen_func_comment_tmpl ## installtables Create all tables in the db and set their permissions ## droptables Drop all tables in the db -- 2.34.1