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
d15a118a
Commit
d15a118a
authored
Aug 27, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quick-hack solution to regproc/oid issue was not the right solution.
parent
ceca2a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+5
-6
No files found.
src/bin/pg_dump/pg_dump.c
View file @
d15a118a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.22
5 2001/08/27 00:44:40
tgl Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.22
6 2001/08/27 01:09:59
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -2883,7 +2883,7 @@ getIndexes(int *numIndexes)
...
@@ -2883,7 +2883,7 @@ getIndexes(int *numIndexes)
"SELECT i.indexrelid as indexreloid, "
"SELECT i.indexrelid as indexreloid, "
"i.indrelid as indreloid, "
"i.indrelid as indreloid, "
"t1.relname as indexrelname, t2.relname as indrelname, "
"t1.relname as indexrelname, t2.relname as indrelname, "
"i.indproc, i.indkey, i.indclass, "
"i.indproc
:: oid AS indproc
, i.indkey, i.indclass, "
"a.amname as indamname, i.indisunique, i.indisprimary, "
"a.amname as indamname, i.indisunique, i.indisprimary, "
"length(i.indpred) > 0 as indhaspred "
"length(i.indpred) > 0 as indhaspred "
"from pg_index i, pg_class t1, pg_class t2, pg_am a "
"from pg_index i, pg_class t1, pg_class t2, pg_am a "
...
@@ -4370,16 +4370,15 @@ dumpIndexes(Archive *fout, IndInfo *indinfo, int numIndexes,
...
@@ -4370,16 +4370,15 @@ dumpIndexes(Archive *fout, IndInfo *indinfo, int numIndexes,
continue
;
continue
;
}
}
/* indproc is regproc in 7.2, oid previously, so check both */
if
(
strcmp
(
indinfo
[
i
].
indproc
,
"-"
)
==
0
||
if
(
strcmp
(
indinfo
[
i
].
indproc
,
"0"
)
==
0
)
strcmp
(
indinfo
[
i
].
indproc
,
"0"
)
==
0
)
funcname
=
NULL
;
funcname
=
NULL
;
else
else
{
{
int
numFuncs
;
int
numFuncs
;
/*
/*
* the
funcname
is an oid which we use to find the name of the
* the
indproc
is an oid which we use to find the name of the
* pg_proc. We need to do this because getFuncs() only reads
* pg_proc. We need to do this because getFuncs() only reads
* in the user-defined funcs not all the funcs. We might not
* in the user-defined funcs not all the funcs. We might not
* find what we want by looking in FuncInfo*
* find what we want by looking in FuncInfo*
...
...
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