Re: Query::targetList and RETURNING

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Query::targetList and RETURNING
Date: 2009-11-10 16:19:45
Message-ID: 244.1257869985@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marko Tiikkaja <marko(dot)tiikkaja(at)cs(dot)helsinki(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-11-10 16:36:03 Re: [HACKERS] PostgreSQL 8.3.8 on AIX5.3 : compilation failed
Previous Message Marko Tiikkaja 2009-11-10 16:11:13 Re: Query::targetList and RETURNING