1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

In pg_upgrade, remove functions that did sequential array scans looking

up relations, but rather order old/new relations and use the same array
index value for both.  This should speed up pg_upgrade for databases
with many relations.
This commit is contained in:
Bruce Momjian
2011-01-08 13:44:44 -05:00
parent ebaf648ad2
commit 002c105a07
5 changed files with 37 additions and 109 deletions

View File

@ -13,13 +13,13 @@
/*
* install_support_functions_in_db()
* install_support_functions_in_new_db()
*
* pg_upgrade requires some support functions that enable it to modify
* backend behavior.
*/
void
install_support_functions_in_db(const char *db_name)
install_support_functions_in_new_db(const char *db_name)
{
PGconn *conn = connectToServer(&new_cluster, db_name);
@ -87,7 +87,7 @@ install_support_functions_in_db(const char *db_name)
void
uninstall_support_functions(void)
uninstall_support_functions_from_new_cluster(void)
{
int dbnum;