Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ebaf648a
Commit
ebaf648a
authored
14 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
In pg_upgrade, clarify use of install_db_support_functions().
parent
a60b32b3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contrib/pg_upgrade/function.c
+2
-2
2 additions, 2 deletions
contrib/pg_upgrade/function.c
contrib/pg_upgrade/pg_upgrade.c
+8
-3
8 additions, 3 deletions
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.h
+1
-1
1 addition, 1 deletion
contrib/pg_upgrade/pg_upgrade.h
with
11 additions
and
6 deletions
contrib/pg_upgrade/function.c
+
2
−
2
View file @
ebaf648a
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
/*
/*
* install_
db_
support_functions()
* install_support_functions
_in_db
()
*
*
* pg_upgrade requires some support functions that enable it to modify
* pg_upgrade requires some support functions that enable it to modify
* backend behavior.
* backend behavior.
*/
*/
void
void
install_
db_
support_functions
(
const
char
*
db_name
)
install_support_functions
_in_db
(
const
char
*
db_name
)
{
{
PGconn
*
conn
=
connectToServer
(
&
new_cluster
,
db_name
);
PGconn
*
conn
=
connectToServer
(
&
new_cluster
,
db_name
);
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_upgrade/pg_upgrade.c
+
8
−
3
View file @
ebaf648a
...
@@ -225,8 +225,11 @@ prepare_new_databases(void)
...
@@ -225,8 +225,11 @@ prepare_new_databases(void)
prep_status
(
"Creating databases in the new cluster"
);
prep_status
(
"Creating databases in the new cluster"
);
/* install support functions in the database used by GLOBALS_DUMP_FILE */
/*
install_db_support_functions
(
os_info
.
user
);
* Install support functions in the database accessed by
* GLOBALS_DUMP_FILE because it can preserve pg_authid.oid.
*/
install_support_functions_in_db
(
os_info
.
user
);
/*
/*
* We have to create the databases first so we can install support
* We have to create the databases first so we can install support
...
@@ -261,7 +264,9 @@ create_new_objects(void)
...
@@ -261,7 +264,9 @@ create_new_objects(void)
{
{
DbInfo
*
new_db
=
&
new_cluster
.
dbarr
.
dbs
[
dbnum
];
DbInfo
*
new_db
=
&
new_cluster
.
dbarr
.
dbs
[
dbnum
];
install_db_support_functions
(
new_db
->
db_name
);
/* skip db we already installed */
if
(
strcmp
(
new_db
->
db_name
,
os_info
.
user
)
!=
0
)
install_support_functions_in_db
(
new_db
->
db_name
);
}
}
check_ok
();
check_ok
();
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_upgrade/pg_upgrade.h
+
1
−
1
View file @
ebaf648a
...
@@ -321,7 +321,7 @@ void check_hard_link(void);
...
@@ -321,7 +321,7 @@ void check_hard_link(void);
/* function.c */
/* function.c */
void
install_
db_
support_functions
(
const
char
*
db_name
);
void
install_support_functions
_in_db
(
const
char
*
db_name
);
void
uninstall_support_functions
(
void
);
void
uninstall_support_functions
(
void
);
void
get_loadable_libraries
(
void
);
void
get_loadable_libraries
(
void
);
void
check_loadable_libraries
(
void
);
void
check_loadable_libraries
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment