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
bfa3b59d
Commit
bfa3b59d
authored
Jan 13, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initdb didn't load pg_description
parent
e419b482
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+19
-7
No files found.
src/bin/initdb/initdb.sh
View file @
bfa3b59d
...
...
@@ -26,17 +26,18 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.7
7 1999/12/22 04:23:31 ishii
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.7
8 2000/01/13 18:22:10 petere
Exp $
#
#-------------------------------------------------------------------------
exit_nicely
(){
echo
echo
"
$CMDNAME
failed."
if
[
"
$noclean
"
-eq
0
]
then
if
[
"
$noclean
"
-eq
0
]
;
then
echo
"Removing
$PGDATA
."
rm
-rf
"
$PGDATA
"
||
echo
"Failed."
echo
"Removing temp file
$TEMPFILE
."
rm
-rf
"
$TEMPFILE
"
||
echo
"Failed."
else
echo
"Data directory
$PGDATA
will not be removed at user's request."
fi
...
...
@@ -53,7 +54,11 @@ then
fi
EffectiveUser
=
`
id
-n
-u
2>/dev/null
||
whoami
2>/dev/null
`
TEMPFILE
=
"/tmp/initdb.
$$
"
if
[
"
$TMPDIR
"
]
;
then
TEMPFILE
=
"
$TMPDIR
/initdb.
$$
"
else
TEMPFILE
=
"/tmp/initdb.
$$
"
fi
#
# Find out where we're located
...
...
@@ -547,10 +552,17 @@ echo "CREATE VIEW pg_indexes AS \
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
echo
"Loading pg_description."
echo
"COPY pg_description FROM '
$TEMPLATE_DESCR
'"
\
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
echo
"COPY pg_description FROM '
$GLOBAL_DESCR
'"
\
echo
"COPY pg_description FROM STDIN"
>
$TEMPFILE
cat
"
$TEMPLATE_DESCR
"
>>
$TEMPFILE
cat
"
$GLOBAL_DESCR
"
>>
$TEMPFILE
cat
$TEMPFILE
\
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
if
[
"
$noclean
"
-eq
0
]
then
rm
-f
"
$TEMPFILE
"
||
exit_nicely
fi
echo
"Vacuuming database."
echo
"VACUUM ANALYZE"
\
|
"
$PGPATH
"
/postgres
$PGSQL_OPT
template1
>
/dev/null
||
exit_nicely
...
...
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