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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user