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
e6557e9a
Commit
e6557e9a
authored
Apr 06, 2005
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include information about a domain's CHECK constraint, if any, in the
output of \dD in psql. From Greg Sabino Mullane.
parent
00a1b1e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/bin/psql/describe.c
src/bin/psql/describe.c
+6
-3
No files found.
src/bin/psql/describe.c
View file @
e6557e9a
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.11
4 2005/04/01 05:30:38 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.11
5 2005/04/06 05:23:32 neilc
Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
...
...
@@ -1579,14 +1579,17 @@ listDomains(const char *pattern)
" WHEN t.typnotnull AND t.typdefault IS NULL THEN 'not null'
\n
"
" WHEN NOT t.typnotnull AND t.typdefault IS NOT NULL THEN 'default '||t.typdefault
\n
"
" ELSE ''
\n
"
" END as
\"
%s
\"\n
"
" END as
\"
%s
\"
,
\n
"
" pg_catalog.pg_get_constraintdef(r.oid, true) as
\"
%s
\"\n
"
"FROM pg_catalog.pg_type t
\n
"
" LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
\n
"
" LEFT JOIN pg_catalog.pg_constraint r ON t.oid = r.contypid
\n
"
"WHERE t.typtype = 'd'
\n
"
,
_
(
"Schema"
),
_
(
"Name"
),
_
(
"Type"
),
_
(
"Modifier"
));
_
(
"Modifier"
),
_
(
"Check"
));
processNamePattern
(
&
buf
,
pattern
,
true
,
false
,
"n.nspname"
,
"t.typname"
,
NULL
,
...
...
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