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 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq