Re: About bug #6049 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: About bug #6049
Date
Msg-id BANLkTinpSZ-o=1rbA8T4BU28-maoHvgYxA@mail.gmail.com
Whole thread Raw
In response to Re: About bug #6049  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Jun 3, 2011 at 12:13 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Fri, Jun 3, 2011 at 11:25 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> But anyway, there are basically two things we could do here: either
>>> allow the table alias to be referenced, or try to teach ruleutils.c
>>> not to qualify the column reference.  The second looks pretty tricky
>>> and maybe not future-proof, so I'm leaning to the first.  Comments?
>
>> I think that makes sense, although it would less totally arbitrary if
>> the alias were just "values" rather than "*VALUES*".  The asterisks
>> suggest that the identifier is fake.  But it's probably too late to do
>> anything about that.
>
> Hmm.  Right now, since the identifier can't be referenced explicitly,
> you could argue that a change might be painless.  But if what we're
> trying to accomplish is to allow existing view definitions of this form
> to be dumped and restored, that wouldn't work.  I'm inclined to leave
> it alone.

Yep.  I think we're stuck with it at this point.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Change 'pg_ctl: no server running' Exit Status to 3
Next
From: Radosław Smogura
Date:
Subject: Streaming solution and v3.1 protocol