Re: Assertion failure due to ColumnRefStar - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Assertion failure due to ColumnRefStar
Date
Msg-id 10795.1190911894@sss.pgh.pa.us
Whole thread Raw
In response to Re: Assertion failure due to ColumnRefStar  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> The problem here is that in the output of the grammar, * is represented
> exactly the same as "*" would be ... I suppose this representation was
> chosen back in the day before we had full support for quoted column
> names.

I took a brief look at this.  Changing that representation seems like
it'd be a fairly simple exercise, but I don't want to get into doing it
before 8.3 beta, and it'd be too invasive for a back-patch anyway.  What
I propose for the moment is to replace the Assert with a plain elog:
if (!targetlist)    elog(ERROR, "invalid use of *");

Thoughts?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Getting to 8.3 beta1
Next
From: Andrew Dunstan
Date:
Subject: Re: Getting to 8.3 beta1