From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Quoting of psql \d output |
Date: | 2003-12-23 15:49:17 |
Message-ID: | 3FE863FD.20004@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Hey Bruce,
While you're at it - use the same sort of code to conditionally quote
index, rule and constraint names ...
Chris
Bruce Momjian wrote:
> psql \d always double-quotes table names:
>
> Table "public.xx"
> Column | Type | Modifiers
> --------+---------+-----------
> y | integer |
> Indexes:
> "ii" btree (y)
>
>
> With this patch, double-quotes are not used when not required:
>
> test=> \d xx
> Table public.xx
> Column | Type | Modifiers
> --------+---------+-----------
> y | integer |
> Indexes:
> ii btree (y)
>
>
> but does in this case:
>
> test=> \d "xx y"
> Table public."xx y"
> Column | Type | Modifiers
> --------+---------+-----------
> y | integer |
> Indexes:
> vv btree (y)
>
> This patch uses pg_dump fmtId() to double-quote only when necessary.
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-12-23 15:53:03 | Re: Permissions and PGSQL |
Previous Message | Christopher Kings-Lynne | 2003-12-23 15:47:42 | Re: [GENERAL] Temporary tables and miscellaneous schemas |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-12-23 16:01:25 | Re: [GENERAL] Temporary tables and miscellaneous schemas |
Previous Message | Christopher Kings-Lynne | 2003-12-23 15:47:42 | Re: [GENERAL] Temporary tables and miscellaneous schemas |