| From: | Martin Pihlak <martin(dot)pihlak(at)gmail(dot)com> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: psql \d commands and information_schema |
| Date: | 2009-04-03 07:46:00 |
| Message-ID: | 49D5BEB8.10102@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Bruce Momjian wrote:
> I have applied a simplified version of your patch, attached, that adds
> just a "AND <>" line to the query; I was a little concerned that IN
> might affect performance, and the macros seemed kind of complicated.
>
Thanks.
> Also, since my patch this morning any pattern will also trigger
> information_schema lookups, not just 'S'.
>
Hmm, this is a problem -- "\dX *.*" now shows all objects, and there is
no way to list only user objects. This is especially a problem if user
objects are scattered in different schemas.
I'd suggest that the U option to be reintroduced for the purpouse to describe
only user objects. One possible solution is to modifiy exec_command so that
show_system is set to true if S or pattern present, and false if U is
specified.
Proposed patch attached.
regards,
Martin
| Attachment | Content-Type | Size |
|---|---|---|
| psql-describe.patch | text/x-diff | 11.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zeugswetter Andreas OSB sIT | 2009-04-03 08:40:58 | Re: Abwesend: [GENERAL] string_to_array with empty input |
| Previous Message | Itagaki Takahiro | 2009-04-03 07:23:10 | Re: Duplicate key value error |