Skip to content

Commit 20a3830

Browse files
committed
Add C comment explaining why we can't exclude checking functions in the
pg_catalog schema, even though they are not explicitly dumped (they are implicitly dumped, e.g. create language plperl).
1 parent d4696fa commit 20a3830

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/pg_upgrade/function.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ get_loadable_libraries(void)
142142
DbInfo *active_db = &old_cluster.dbarr.dbs[dbnum];
143143
PGconn *conn = connectToServer(&old_cluster, active_db->db_name);
144144

145-
/* Fetch all libraries referenced in this DB */
145+
/*
146+
* Fetch all libraries referenced in this DB. We can't exclude
147+
* the "pg_catalog" schema because, while such functions are not
148+
* explicitly dumped by pg_dump, they do reference implicit objects
149+
* that pg_dump does dump, e.g. creation of the plperl language.
150+
*/
146151
ress[dbnum] = executeQueryOrDie(conn,
147152
"SELECT DISTINCT probin "
148153
"FROM pg_catalog.pg_proc "

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy