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
b2e859a4
Commit
b2e859a4
authored
Oct 22, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate correct syntax for DROP OPERATOR with unary operators.
parent
b5ab19a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
src/bin/pg_dump/common.c
src/bin/pg_dump/common.c
+3
-1
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+7
-4
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump.h
+2
-1
No files found.
src/bin/pg_dump/common.c
View file @
b2e859a4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.5
8 2001/10/03 20:54:21
tgl Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.5
9 2001/10/22 19:31:09
tgl Exp $
*
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
*
...
@@ -74,6 +74,8 @@ findTypeByOid(TypeInfo *tinfo, int numTypes, const char *oid, OidOptions opts)
...
@@ -74,6 +74,8 @@ findTypeByOid(TypeInfo *tinfo, int numTypes, const char *oid, OidOptions opts)
return
"'any'"
;
return
"'any'"
;
else
if
((
opts
&
zeroAsStar
)
!=
0
)
else
if
((
opts
&
zeroAsStar
)
!=
0
)
return
"*"
;
return
"*"
;
else
if
((
opts
&
zeroAsNone
)
!=
0
)
return
"NONE"
;
}
}
for
(
i
=
0
;
i
<
numTypes
;
i
++
)
for
(
i
=
0
;
i
<
numTypes
;
i
++
)
...
...
src/bin/pg_dump/pg_dump.c
View file @
b2e859a4
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.23
3 2001/10/03 20:54:21
tgl Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.23
4 2001/10/22 19:31:09
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -3642,10 +3642,13 @@ dumpOprs(Archive *fout, OprInfo *oprinfo, int numOperators,
...
@@ -3642,10 +3642,13 @@ dumpOprs(Archive *fout, OprInfo *oprinfo, int numOperators,
}
}
resetPQExpBuffer
(
delq
);
resetPQExpBuffer
(
delq
);
appendPQExpBuffer
(
delq
,
"DROP OPERATOR %s (%s"
,
oprinfo
[
i
].
oprname
,
appendPQExpBuffer
(
delq
,
"DROP OPERATOR %s (%s"
,
findTypeByOid
(
tinfo
,
numTypes
,
oprinfo
[
i
].
oprleft
,
zeroAsOpaque
));
oprinfo
[
i
].
oprname
,
findTypeByOid
(
tinfo
,
numTypes
,
oprinfo
[
i
].
oprleft
,
zeroAsNone
));
appendPQExpBuffer
(
delq
,
", %s);
\n
"
,
appendPQExpBuffer
(
delq
,
", %s);
\n
"
,
findTypeByOid
(
tinfo
,
numTypes
,
oprinfo
[
i
].
oprright
,
zeroAsOpaque
));
findTypeByOid
(
tinfo
,
numTypes
,
oprinfo
[
i
].
oprright
,
zeroAsNone
));
resetPQExpBuffer
(
q
);
resetPQExpBuffer
(
q
);
appendPQExpBuffer
(
q
,
appendPQExpBuffer
(
q
,
...
...
src/bin/pg_dump/pg_dump.h
View file @
b2e859a4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_dump.h,v 1.7
2 2001/10/03 20:54:21
tgl Exp $
* $Id: pg_dump.h,v 1.7
3 2001/10/22 19:31:09
tgl Exp $
*
*
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
*
*
...
@@ -224,6 +224,7 @@ typedef enum _OidOptions
...
@@ -224,6 +224,7 @@ typedef enum _OidOptions
zeroAsOpaque
=
1
,
zeroAsOpaque
=
1
,
zeroAsAny
=
2
,
zeroAsAny
=
2
,
zeroAsStar
=
4
,
zeroAsStar
=
4
,
zeroAsNone
=
8
,
useBaseTypeName
=
1024
useBaseTypeName
=
1024
}
OidOptions
;
}
OidOptions
;
...
...
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