List schema contents - Mailing list pgsql-hackers

From Jim C. Nasby
Subject List schema contents
Date
Msg-id 20060609193356.GC57289@pervasive.com
Whole thread Raw
Responses Re: List schema contents  (Martijn van Oosterhout <kleptog@svana.org>)
Re: List schema contents  (Neil Conway <neilc@samurai.com>)
Re: List schema contents  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Currently, the only way to get a listing of tables in a schema via psql
is to modify your search_path, which is both non-intuitive and a PITA.
You can do \d schemaname., but that's the equivalent of

set search_path = schemaname
\d *

I'd like to propose that the behavior of \d schemaname. be changed to
match

set search_path = schemaname
\d

That avoids issues with table name conflicts that could arise if the
trailing . wasn't required. And the old behavior is still available as
\d schemaname.*

One problem I see is that this will break the ability to search for
tablename. via regex. Since that's easy to do via tablename?, I don't
think it's a big deal, unless someone has better ideas on how to
indicate we want to list something for a specific schema.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work
Next
From: Greg Stark
Date:
Subject: Re: That EXPLAIN ANALYZE patch still needs work