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
ad269d5e
Commit
ad269d5e
authored
Aug 04, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in new pg_dump -T/-N handling that was dumping system schemas if
these options were used before -n/-t.
parent
6db6714f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+12
-4
No files found.
src/bin/pg_dump/pg_dump.c
View file @
ad269d5e
...
...
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.44
5 2006/08/02 21:43:43
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.44
6 2006/08/04 18:32:15
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -632,7 +632,10 @@ main(int argc, char **argv)
{
/* Special case for when -N is the first argument */
if
(
this_obj_name
==
schemaList
&&
!
this_obj_name
->
is_include
)
appendPQExpBuffer
(
query
,
"SELECT oid FROM pg_catalog.pg_namespace EXCEPT
\n
"
);
appendPQExpBuffer
(
query
,
"SELECT oid FROM pg_catalog.pg_namespace "
"WHERE nspname NOT LIKE 'pg_%%' AND "
" nspname != 'information_schema' EXCEPT
\n
"
);
appendPQExpBuffer
(
query
,
"SELECT oid FROM pg_catalog.pg_namespace WHERE"
);
}
...
...
@@ -694,7 +697,12 @@ main(int argc, char **argv)
{
/* Special case for when -T is the first argument */
if
(
this_obj_name
==
tableList
&&
!
this_obj_name
->
is_include
&&
!
strlen
(
query
->
data
))
appendPQExpBuffer
(
query
,
"SELECT oid FROM pg_catalog.pg_class WHERE relkind='r' EXCEPT
\n
"
);
appendPQExpBuffer
(
query
,
"SELECT pg_class.oid FROM pg_catalog.pg_class, pg_catalog.pg_namespace "
"WHERE relkind='r' AND "
" relnamespace = pg_namespace.oid AND "
" nspname NOT LIKE 'pg_%%' AND "
" nspname != 'information_schema' EXCEPT
\n
"
);
appendPQExpBuffer
(
query
,
"SELECT oid FROM pg_catalog.pg_class WHERE relkind='r' AND ("
);
}
...
...
@@ -6169,7 +6177,7 @@ dumpCast(Archive *fout, CastInfo *cast)
* Skip this cast if all objects are from pg_
*/
if
((
funcInfo
==
NULL
||
strncmp
(
funcInfo
->
dobj
.
namespace
->
dobj
.
name
,
"pg_"
,
3
)
==
0
)
&&
strncmp
(
funcInfo
->
dobj
.
namespace
->
dobj
.
name
,
"pg_"
,
3
)
==
0
)
&&
strncmp
(
sourceInfo
->
dobj
.
namespace
->
dobj
.
name
,
"pg_"
,
3
)
==
0
&&
strncmp
(
targetInfo
->
dobj
.
namespace
->
dobj
.
name
,
"pg_"
,
3
)
==
0
)
return
;
...
...
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