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
0fb3ec1a
Commit
0fb3ec1a
authored
Dec 16, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix constraint_column_usage for foreign keys.
parent
f57832f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/backend/catalog/information_schema.sql
src/backend/catalog/information_schema.sql
+3
-4
No files found.
src/backend/catalog/information_schema.sql
View file @
0fb3ec1a
...
...
@@ -4,7 +4,7 @@
*
* Copyright 2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.
19 2003/12/07 19:43:02 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/catalog/information_schema.sql,v 1.
20 2003/12/16 14:57:20 petere
Exp $
*/
/*
...
...
@@ -445,10 +445,9 @@ CREATE VIEW constraint_column_usage AS
pg_constraint
c
,
_pg_keypositions
()
AS
pos
(
n
)
WHERE
nr
.
oid
=
r
.
relnamespace
AND
r
.
oid
=
a
.
attrelid
AND
r
.
oid
=
c
.
conrelid
AND
nc
.
oid
=
c
.
connamespace
AND
(
CASE
WHEN
c
.
contype
=
'f'
THEN
c
.
confkey
[
pos
.
n
]
=
a
.
attnum
ELSE
c
.
conkey
[
pos
.
n
]
=
a
.
attnum
END
)
AND
(
CASE
WHEN
c
.
contype
=
'f'
THEN
r
.
oid
=
c
.
confrelid
AND
c
.
confkey
[
pos
.
n
]
=
a
.
attnum
ELSE
r
.
oid
=
c
.
conrelid
AND
c
.
conkey
[
pos
.
n
]
=
a
.
attnum
END
)
AND
a
.
attnum
>
0
AND
NOT
a
.
attisdropped
AND
c
.
contype
IN
(
'p'
,
'u'
,
'f'
)
...
...
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