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