Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4e37786f
Commit
4e37786f
authored
Jan 11, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More testing, more cleanups.
parent
37c9346e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/bin/pg_dump/pg_upgrade
src/bin/pg_dump/pg_upgrade
+6
-3
No files found.
src/bin/pg_dump/pg_upgrade
View file @
4e37786f
...
...
@@ -5,7 +5,7 @@
#set -x
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.2
7 2002/01/11 06:33:0
1 momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_upgrade,v 1.2
8 2002/01/11 06:48:4
1 momjian Exp $
#
# NOTE: we must be sure to update the version-checking code a few dozen lines
# below for each new PostgreSQL release.
...
...
@@ -158,7 +158,7 @@ fi
# we are done with SQL database access
# shutdown forces buffers to disk
pg_ctl stop
pg_ctl
-w
stop
if
[
"
$?
"
-ne
0
]
then
echo
"Unable to stop database server.; exiting"
1>&2
exit
1
...
...
@@ -271,7 +271,7 @@ fi
# Restart server with moved data
pg_ctl start
pg_ctl
-w
start
if
[
"
$?
"
-ne
0
]
then
echo
"Unable to restart database server.; exiting"
1>&2
exit
1
...
...
@@ -283,11 +283,14 @@ if [ "$SRC_VERSION" = "7.1" ]
then
echo
"Set int8 sequence values from 7.1..."
psql
-d
template1
-At
-c
"SELECT datname FROM pg_database"
|
grep
-v
'^template0$'
|
# no system databases
grep
-v
'^template1$'
|
# no system databases
while
read
DB
do
echo
"
$DB
"
# XXX is concurrency a problem here?
psql
-d
"
$DB
"
-At
-c
"SELECT relname FROM pg_class where relkind = 'S';"
|
grep
-v
'^pg_'
|
# no system tables
while
read
SEQUENCE
do
psql
-d
"
$DB
"
-At
<<
SQL_END
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment