pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedlist schema
12+ messages / 8 participants
[nested] [flat]
* list schema
@ 2002-12-05 18:51 Jie Liang <jie@stbernard.com>
2002-12-05 19:33 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 2 replies; 12+ messages in thread
From: Jie Liang @ 2002-12-05 18:51 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-admin
Bruce,
I wonder which command can show all schemas in 7.3?
I mean:
\dt -- show all tables
\l -- show all databases
?? -- show all schemas
Thanks.
Jie Liang
Software Engineer
St. Bernard Software
16882 W. Bernardo Dr.
San Diego, CA 92127
Tel: 858-524-2134
Fax:858-676-2228
jie@stbernard.com
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
@ 2002-12-05 19:33 ` Bruce Momjian <pgman@candle.pha.pa.us>
1 sibling, 0 replies; 12+ messages in thread
From: Bruce Momjian @ 2002-12-05 19:33 UTC (permalink / raw)
To: Jie Liang <jie@stbernard.com>; +Cc: pgsql-admin
We should have one, but the only solution now is:
test=> select * from pg_namespace;
---------------------------------------------------------------------------
Jie Liang wrote:
> Bruce,
>
> I wonder which command can show all schemas in 7.3?
> I mean:
> \dt -- show all tables
> \l -- show all databases
> ?? -- show all schemas
>
> Thanks.
>
>
> Jie Liang
> Software Engineer
> St. Bernard Software
> 16882 W. Bernardo Dr.
> San Diego, CA 92127
> Tel: 858-524-2134
> Fax:858-676-2228
> jie@stbernard.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
@ 2002-12-05 19:34 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 12+ messages in thread
From: Bruce Momjian @ 2002-12-05 19:34 UTC (permalink / raw)
To: Jie Liang <jie@stbernard.com>; +Cc: pgsql-admin
Also, on TODO I see:
* Add schema, cast, and conversion backslash commands to psql
so we know we need them.
---------------------------------------------------------------------------
Jie Liang wrote:
> Bruce,
>
> I wonder which command can show all schemas in 7.3?
> I mean:
> \dt -- show all tables
> \l -- show all databases
> ?? -- show all schemas
>
> Thanks.
>
>
> Jie Liang
> Software Engineer
> St. Bernard Software
> 16882 W. Bernardo Dr.
> San Diego, CA 92127
> Tel: 858-524-2134
> Fax:858-676-2228
> jie@stbernard.com
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
@ 2002-12-05 20:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 20:35 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 21:15 ` Re: list schema Larry Rosenman <ler@lerctr.org>
2002-12-05 22:19 ` Re: list schema Jean-Luc Lachance <jllachan@nsd.ca>
2002-12-05 23:21 ` Re: list schema Peter Eisentraut <peter_e@gmx.net>
0 siblings, 4 replies; 12+ messages in thread
From: Tom Lane @ 2002-12-05 20:33 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Jie Liang <jie@stbernard.com>; pgsql-admin
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Also, on TODO I see:
> * Add schema, cast, and conversion backslash commands to psql
> so we know we need them.
I was going to add one for schemas, but \ds and \dS are already taken,
and there was no good proposal for what to use instead. Any thoughts?
regards, tom lane
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-12-05 20:35 ` Bruce Momjian <pgman@candle.pha.pa.us>
3 siblings, 0 replies; 12+ messages in thread
From: Bruce Momjian @ 2002-12-05 20:35 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Jie Liang <jie@stbernard.com>; pgsql-admin
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Also, on TODO I see:
> > * Add schema, cast, and conversion backslash commands to psql
> > so we know we need them.
>
> I was going to add one for schemas, but \ds and \dS are already taken,
> and there was no good proposal for what to use instead. Any thoughts?
I guess we have to go with the second letter, "c", or use "n" for
namespaces.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-12-05 21:15 ` Larry Rosenman <ler@lerctr.org>
3 siblings, 0 replies; 12+ messages in thread
From: Larry Rosenman @ 2002-12-05 21:15 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Jie Liang <jie@stbernard.com>; pgsql-admin
--On Thursday, December 05, 2002 15:33:01 -0500 Tom Lane
<tgl@sss.pgh.pa.us> wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> Also, on TODO I see:
>> * Add schema, cast, and conversion backslash commands to psql
>> so we know we need them.
>
> I was going to add one for schemas, but \ds and \dS are already taken,
> and there was no good proposal for what to use instead. Any thoughts?
\dn for NameSpace?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-12-05 22:19 ` Jean-Luc Lachance <jllachan@nsd.ca>
3 siblings, 0 replies; 12+ messages in thread
From: Jean-Luc Lachance @ 2002-12-05 22:19 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; Jie Liang <jie@stbernard.com>; pgsql-admin
How about \D for Domains...
BTW, because many people ask how to do the equivalant in SQL of a \
command,
why not be done with the \ commands which are criptic anyway and instead
create global stored procedures like:
sp_list_databases()
sp_list_schemas()
sp_list_{whatever}()
sp_enable_{this}()
sp_disable_{that}()
JLL
Tom Lane wrote:
>
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Also, on TODO I see:
> > * Add schema, cast, and conversion backslash commands to psql
> > so we know we need them.
>
> I was going to add one for schemas, but \ds and \dS are already taken,
> and there was no good proposal for what to use instead. Any thoughts?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
@ 2002-12-05 23:21 ` Peter Eisentraut <peter_e@gmx.net>
2002-12-06 06:03 ` Re: list schema Peter Childs <Blue.Dragon@blueyonder.co.uk>
2002-12-06 20:00 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
3 siblings, 2 replies; 12+ messages in thread
From: Peter Eisentraut @ 2002-12-05 23:21 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; Jie Liang <jie@stbernard.com>; pgsql-admin
Tom Lane writes:
> I was going to add one for schemas, but \ds and \dS are already taken,
> and there was no good proposal for what to use instead. Any thoughts?
\dschema
Pretty soon we'll have too many things for 'c' as well, so maybe we should
go with full words.
--
Peter Eisentraut peter_e@gmx.net
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 23:21 ` Re: list schema Peter Eisentraut <peter_e@gmx.net>
@ 2002-12-06 06:03 ` Peter Childs <Blue.Dragon@blueyonder.co.uk>
2002-12-07 10:53 ` Re: list schema Tilo Schwarz <mail@tilo-schwarz.de>
1 sibling, 1 reply; 12+ messages in thread
From: Peter Childs @ 2002-12-06 06:03 UTC (permalink / raw)
To: pgsql-admin
On Thursday 05 December 2002 23:21, Peter Eisentraut wrote:
> Tom Lane writes:
> > I was going to add one for schemas, but \ds and \dS are already taken,
> > and there was no good proposal for what to use instead. Any thoughts?
>
> \dschema
>
> Pretty soon we'll have too many things for 'c' as well, so maybe we should
> go with full words.
I think this sounds like a good idea. as they would be much easier to
remember if its a full word. You can always leave the 1 leave the 1 letter
abbrevations in anyway and have both!
I also notice that on the todo list is a job to turn all these into views. It
might be worth doing that (should not be too difficult I think) plus they
could then be used from other client programs.
Strictly I think this meta information should have its own access methods in
the sql standard because currently sql is a broken standard with out this
meta infomation.
Peter Childs
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 23:21 ` Re: list schema Peter Eisentraut <peter_e@gmx.net>
2002-12-06 06:03 ` Re: list schema Peter Childs <Blue.Dragon@blueyonder.co.uk>
@ 2002-12-07 10:53 ` Tilo Schwarz <mail@tilo-schwarz.de>
0 siblings, 0 replies; 12+ messages in thread
From: Tilo Schwarz @ 2002-12-07 10:53 UTC (permalink / raw)
To: Peter Childs <Blue.Dragon@blueyonder.co.uk>; +Cc: pgsql-admin
Peter Childs writes:
> I also notice that on the todo list is a job to turn all these into views.
> It might be worth doing that (should not be too difficult I think) plus
> they could then be used from other client programs.
That would be really nice!
Tilo
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:34 ` Re: list schema Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Re: list schema Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 23:21 ` Re: list schema Peter Eisentraut <peter_e@gmx.net>
@ 2002-12-06 20:00 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 12+ messages in thread
From: Tom Lane @ 2002-12-06 20:00 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; Jie Liang <jie@stbernard.com>; pgsql-admin
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> I was going to add one for schemas, but \ds and \dS are already taken,
>> and there was no good proposal for what to use instead. Any thoughts?
> \dschema
I would have done that, but it doesn't fit nicely beside the behavior
of the \d[istvS] family. Maybe we should retire that thing?
regards, tom lane
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: list schema
@ 2002-12-05 22:40 Jie Liang <jie@stbernard.com>
0 siblings, 0 replies; 12+ messages in thread
From: Jie Liang @ 2002-12-05 22:40 UTC (permalink / raw)
To: Bruce Momjian <pgman@candle.pha.pa.us>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin
I believe \dn is better.
Jie Liang
Software Engineer
St. Bernard Software
16882 W. Bernardo Dr.
San Diego, CA 92127
Tel: 858-524-2134
Fax:858-676-2228
jie@stbernard.com
-----Original Message-----
From: Bruce Momjian [mailto:pgman@candle.pha.pa.us]
Sent: Thursday, December 05, 2002 12:36 PM
To: Tom Lane
Cc: Jie Liang; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] list schema
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Also, on TODO I see:
> > * Add schema, cast, and conversion backslash commands to psql
> > so we know we need them.
>
> I was going to add one for schemas, but \ds and \dS are already taken,
> and there was no good proposal for what to use instead. Any thoughts?
I guess we have to go with the second letter, "c", or use "n" for
namespaces.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
^ permalink raw reply [nested|flat] 12+ messages in thread
end of thread, other threads:[~2002-12-07 10:53 UTC | newest]
Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 18:51 list schema Jie Liang <jie@stbernard.com>
2002-12-05 19:33 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 19:34 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 20:33 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 20:35 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-05 21:15 ` Larry Rosenman <ler@lerctr.org>
2002-12-05 22:19 ` Jean-Luc Lachance <jllachan@nsd.ca>
2002-12-05 23:21 ` Peter Eisentraut <peter_e@gmx.net>
2002-12-06 06:03 ` Peter Childs <Blue.Dragon@blueyonder.co.uk>
2002-12-07 10:53 ` Tilo Schwarz <mail@tilo-schwarz.de>
2002-12-06 20:00 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 22:40 Re: list schema Jie Liang <jie@stbernard.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox