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
b0984e69
Commit
b0984e69
authored
25 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Add a VACUUM command in hopes of making pg_upgrade usable again
in MVCC environment. I do not trust this until Vadim says it's OK...
parent
b2a2be4c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/pg_dump/pg_upgrade
+11
-2
11 additions, 2 deletions
src/bin/pg_dump/pg_upgrade
with
11 additions
and
2 deletions
src/bin/pg_dump/pg_upgrade
+
11
−
2
View file @
b0984e69
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
# pg_upgrade: update a database without needing a full dump/reload cycle.
# pg_upgrade: update a database without needing a full dump/reload cycle.
# CAUTION: read the manual page before trying to use this!
# CAUTION: read the manual page before trying to use this!
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.11 1999/08/02 22:34:53 tgl Exp $
#
# NOTE: we must be sure to update the version-checking code a few dozen lines
# NOTE: we must be sure to update the version-checking code a few dozen lines
# below for each new PostgreSQL release.
# below for each new PostgreSQL release.
...
@@ -109,8 +111,15 @@ cat $INPUT | awk ' {
...
@@ -109,8 +111,15 @@ cat $INPUT | awk ' {
;
;
else print $0;
else print $0;
}'
>
/tmp/
$$
}'
>
/tmp/
$$
#create empty tables/indexes
# Add a VACUUM command to the end of the pg_dump script. With MVCC,
# this is necessary to ensure that all the rows in the new database's
# system tables will still be considered committed after we overwrite
# pg_log with the old database's commit log...
echo
"VACUUM;"
>>
/tmp/
$$
# Create and vacuum empty tables/indexes
psql
"template1"
<
"/tmp/
$$
"
psql
"template1"
<
"/tmp/
$$
"
...
...
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