pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Karl Lehenbauer <karl@flightaware.com>
Subject: Re: Add support for SRF and returning composites to pl/tcl
Date: Tue, 08 Nov 2016 09:33:34 -0500
Message-ID: <19165.1478615614@sss.pgh.pa.us> (raw)
In-Reply-To: <0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com>
References: <f2134651-14b3-efeb-f274-c69f3c084031@BlueTreble.com>
	<8658.1478394740@sss.pgh.pa.us>
	<8785.1478456128@sss.pgh.pa.us>
	<0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Jim Nasby <Jim.Nasby@bluetreble.com> writes:
> Hrm, I completely spaced on the fact that composite returns are 
> essentially the same thing as trigger returns. ISTM we should be able to 
> use the same code for both. IIRC those magic elements could end up in 
> any SPI result, so that handling certainly needs to be the same.

> Have you had a chance to look at this or should I?

As things stand in HEAD, the behavior is about the same, but the error
messages are not --- in one case they mention triggers and of course the
other doesn't.  There are a couple of other minor things in the way of
unifying the two hunks of code, so I concluded it probably wasn't worth
the trouble.  But feel free to take another look if it bugs you.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (11+ messages)  latest in thread

Message-ID: <19165.1478615614@sss.pgh.pa.us>
Permalink:  ../19165.1478615614@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19165.1478615614@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Jim.Nasby@bluetreble.com, karl@flightaware.com
  Subject: Re: Add support for SRF and returning composites to pl/tcl
  In-Reply-To: <19165.1478615614@sss.pgh.pa.us>
  References: <f2134651-14b3-efeb-f274-c69f3c084031@BlueTreble.com> <8658.1478394740@sss.pgh.pa.us> <8785.1478456128@sss.pgh.pa.us> <0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com> <19165.1478615614@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox