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
a922472a
Commit
a922472a
authored
Dec 23, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supress non-temp schemas from psql \dn display.
parent
afb09b5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+2
-1
src/bin/psql/describe.c
src/bin/psql/describe.c
+7
-6
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
a922472a
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.10
1 2003/12/01 22:21:5
4 momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.10
2 2003/12/23 23:13:1
4 momjian Exp $
PostgreSQL documentation
-->
...
...
@@ -957,6 +957,7 @@ testdb=>
Lists all available schemas (namespaces). If <replaceable
class="parameter">pattern</replaceable> (a regular expression)
is specified, only schemas whose names match the pattern are listed.
Non-local temporary schemas are suppressed.
</para>
</listitem>
</varlistentry>
...
...
src/bin/psql/describe.c
View file @
a922472a
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.9
0 2003/12/01 22:21:5
4 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.9
1 2003/12/23 23:13:1
4 momjian Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
...
...
@@ -1626,14 +1626,15 @@ listSchemas(const char *pattern)
initPQExpBuffer
(
&
buf
);
printfPQExpBuffer
(
&
buf
,
"SELECT n.nspname AS
\"
%s
\"
,
\n
"
" u.usename AS
\"
%s
\"\n
"
"SELECT n.nspname AS
\"
%s
\"
,
\n
"
" u.usename AS
\"
%s
\"\n
"
"FROM pg_catalog.pg_namespace n LEFT JOIN pg_catalog.pg_user u
\n
"
" ON n.nspowner=u.usesysid
\n
"
,
" ON n.nspowner=u.usesysid
\n
"
"WHERE (n.nspname NOT LIKE 'pg
\\\\
_temp
\\\\
_%%' OR
\n
"
" n.nspname = (pg_catalog.current_schemas(true))[1])
\n
"
,
/* temp schema is first */
_
(
"Name"
),
_
(
"Owner"
));
processNamePattern
(
&
buf
,
pattern
,
false
,
false
,
processNamePattern
(
&
buf
,
pattern
,
true
,
false
,
NULL
,
"n.nspname"
,
NULL
,
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