Re: Request for qualified column names

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Reggie Burnett <rykr(at)bellsouth(dot)net>, "'Dave Cramer'" <dave(at)fastcrypt(dot)com>, "'PostgreSQL Hackers Mailing List'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Request for qualified column names
Date: 2003-01-27 20:50:59
Message-ID: 221900000.1043700659@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

--On Monday, January 27, 2003 15:49:06 -0500 Bruce Momjian
<pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:

>
> My idea on this after chat with Dave was to add a GUC option that puts
> the schema.table.column name as the default column label, rather than
> just the column name. (That's so easy, I think even I could do it.) If
> they over-ride it with AS, or if it is an aggregate or FROM subquery, we
> just return the default label as we do now --- we could return no label
> for those cases, but that seems too drastic. I am not overly excited
> about doing this at the protocol level unless there is major need for it.
DONT DEFAULT TO THE NEW ONE WITHOUT NOTICE!

You will ***BREAK*** people.

LER

>
> -------------------------------------------------------------------------
> --
>
> Tom Lane wrote:
>> "Reggie Burnett" <rykr(at)bellsouth(dot)net> writes:
>> > When talking about expressions,views, or any other construct that could
>> > combine values from multiple tables I think it is reasonable to provide
>> > null as the table name. Any one or any process requesting the table
>> > name has to understand that not all SQL parameters have a base table
>> > name. However, in the case where a single table is involved, table and
>> > schema names should be available.
>>
>> That seems quite pointless. You hardly need the backend's help to
>> determine which column belongs to which table in a single-table query.
>> AFAICS this facility is only of interest if it does something useful
>> in not-so-trivial cases.
>>
>> regards, tom lane
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 6: Have you searched our list archives?
>>
>> http://archives.postgresql.org
>>
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania
> 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-01-27 21:02:54 Re: Cannot connect to the database (PG 7.3)
Previous Message Bruce Momjian 2003-01-27 20:49:06 Re: Request for qualified column names