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
48f04908
Commit
48f04908
authored
Oct 25, 2000
by
Philip Warner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final (?) fix for tar (null block at end)
Dump template db in dumpall
parent
03f9e5a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_backup_archiver.h
+1
-1
src/bin/pg_dump/pg_backup_tar.c
src/bin/pg_dump/pg_backup_tar.c
+8
-1
src/bin/pg_dump/pg_dumpall.sh
src/bin/pg_dump/pg_dumpall.sh
+15
-1
No files found.
src/bin/pg_dump/pg_backup_archiver.h
View file @
48f04908
...
...
@@ -62,7 +62,7 @@ typedef z_stream *z_streamp;
#define K_VERS_MAJOR 1
#define K_VERS_MINOR 4
#define K_VERS_REV 2
0
#define K_VERS_REV 2
1
/* Data block types */
#define BLK_DATA 1
...
...
src/bin/pg_dump/pg_backup_tar.c
View file @
48f04908
...
...
@@ -721,7 +721,7 @@ static void _CloseArchive(ArchiveHandle* AH)
lclContext
*
ctx
=
(
lclContext
*
)
AH
->
formatData
;
TAR_MEMBER
*
th
;
RestoreOptions
*
ropt
;
int
savVerbose
;
int
savVerbose
,
i
;
if
(
AH
->
mode
==
archModeWrite
)
{
...
...
@@ -774,6 +774,13 @@ static void _CloseArchive(ArchiveHandle* AH)
AH
->
public
.
verbose
=
savVerbose
;
tarClose
(
AH
,
th
);
/* Add a block of NULLs since it's de-rigeur. */
for
(
i
=
0
;
i
<
512
;
i
++
)
{
fputc
(
0
,
ctx
->
tarFH
);
}
}
AH
->
FH
=
NULL
;
...
...
src/bin/pg_dump/pg_dumpall.sh
View file @
48f04908
...
...
@@ -6,7 +6,7 @@
# and "pg_group" tables, which belong to the whole installation rather
# than any one individual database.
#
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
4 2000/09/08 18:29:27 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/pg_dumpall.sh,v 1.
5 2000/10/25 10:21:38 pjw
Exp $
CMDNAME
=
`
basename
$0
`
...
...
@@ -179,6 +179,20 @@ while read GRONAME GROSYSID GROLIST ; do
done
# First we dump the template in case there are local extensions.
echo
echo
"--"
echo
"-- Database template1"
echo
"--"
echo
"
${
BS
}
connect template1"
$PGDUMP
"template1"
if
[
"
$?
"
-ne
0
]
;
then
echo
"pg_dump failed on template1, exiting"
1>&2
exit
1
fi
# For each database, run pg_dump to dump the contents of that database.
$PSQL
-d
template1
-At
-F
' '
\
...
...
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