Re: Query::targetList and RETURNING - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Query::targetList and RETURNING
Date
Msg-id 244.1257869985@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query::targetList and RETURNING  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
List pgsql-hackers
Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi> writes:
> Tom Lane wrote:
>> if (query->returningList)
>>    cteList = query->returningList;
>> else
>>    cteList = query->targetList;

> My initial thought is that this won't work because there might not be a
> RETURNING clause, but I'm not sure.

Hm, would we allow DML without RETURNING in CTEs?  I'm not sure I see
the point of that.  But in any case, the other way is fine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: Query::targetList and RETURNING
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] PostgreSQL 8.3.8 on AIX5.3 : compilation failed