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
7fcd675d
Commit
7fcd675d
authored
Jan 27, 2001
by
Philip Warner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When dropping the schema, reconnect as owner of each object.
parent
94bf4526
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+6
-0
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_backup_archiver.h
+1
-1
No files found.
src/bin/pg_dump/pg_backup_archiver.c
View file @
7fcd675d
...
...
@@ -34,6 +34,9 @@
*
* - Check results of IO routines more carefully.
*
* Modifications - 27-Jan-2001 - pjw@rhyme.com.au
* - When dropping the schema, reconnect as owner of each object.
*
*-------------------------------------------------------------------------
*/
...
...
@@ -180,6 +183,9 @@ void RestoreArchive(Archive* AHX, RestoreOptions *ropt)
reqs
=
_tocEntryRequired
(
te
,
ropt
);
if
(
(
(
reqs
&
1
)
!=
0
)
&&
te
->
dropStmt
)
{
/* We want the schema */
ahlog
(
AH
,
1
,
"Dropping %s %s
\n
"
,
te
->
desc
,
te
->
name
);
/* Reconnect if necessary */
_reconnectAsOwner
(
AH
,
"-"
,
te
);
/* Drop it */
ahprintf
(
AH
,
"%s"
,
te
->
dropStmt
);
}
te
=
te
->
prev
;
...
...
src/bin/pg_dump/pg_backup_archiver.h
View file @
7fcd675d
...
...
@@ -62,7 +62,7 @@ typedef z_stream *z_streamp;
#define K_VERS_MAJOR 1
#define K_VERS_MINOR 4
#define K_VERS_REV 2
4
#define K_VERS_REV 2
5
/* Data block types */
#define BLK_DATA 1
...
...
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