psql: no schema info

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: sql pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: psql: no schema info
Date: 2008-04-27 21:33:33
Message-ID: 211388.34374.qm@web54304.mail.re2.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

have several schemae, each with identical tables.

in create scripts have been taking great care to fully qualify, eg,
col1 references schema1.tab1( col1 )

however, just got burnt big time on sequences! need to qualify them as
well, eg
col1 integer default nextval( 'schema1.seq1' )

\dt is no help at all since it does not specify schema so it's
impossible to know if all is aligned correctly. is there a way to tell
psql to fully qualify relations in the listing?

when everything was in public this wasn't a problem, but with elaborate
use of schemae it's pretty scary (for me).

____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2008-04-27 22:36:59 Re: psql: no schema info
Previous Message Thomas Mueller 2008-04-27 18:43:32 Re: Protection from SQL injection