Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2LEL-0001np-Ql for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 14:09:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2LEK-00076u-VB for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 14:09:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2LEJ-00076c-UA for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 14:09:48 +0000 Received: from mout1.freenet.de ([2001:748:100:40::2:3]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2LEG-0005FH-AU for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 14:09:46 +0000 Received: from [195.4.92.141] (helo=mjail1.freenet.de) by mout1.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (port 25) (Exim 4.82 #1) id 1X2LEB-00071i-Uf for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 16:09:39 +0200 Received: from localhost ([::1]:45156 helo=mjail1.freenet.de) by mjail1.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (Exim 4.82 #1) id 1X2LEB-0000sn-QU for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 16:09:39 +0200 Received: from mx13.freenet.de ([195.4.92.23]:51377) by mjail1.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (Exim 4.82 #1) id 1X2LB6-0008Ig-Ff for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 16:06:28 +0200 Received: from 178-82-51-235.dynamic.hispeed.ch ([178.82.51.235]:40494 helo=[192.168.0.16]) by mx13.freenet.de with esmtpsa (ID hoschiraffel@freenet.de) (TLSv1:DHE-RSA-AES128-SHA:128) (port 465) (Exim 4.82 #1) id 1X2LB6-00070c-AW for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 16:06:28 +0200 Message-ID: <53B411E3.6070100@freenet.de> Date: Wed, 02 Jul 2014 16:06:27 +0200 From: Matthias Raffelsieper User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #10836: Rule with RETURNING claims incorrect type References: <20140702130537.5170.32873@wrigleys.postgresql.org> <53B40E5B.1050209@joh.to> In-Reply-To: <53B40E5B.1050209@joh.to> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Originated-At: 178.82.51.235!40494 X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 7/2/14 3:51 PM, Marko Tiikkaja wrote: > On 7/2/14 3:05 PM, hoschiraffel@freenet.de wrote: >> [...] > > You're actually only returning a single column. RETURNING (id, info) is > the same as RETURNING ROW(id, info), which is very different from > RETURNING id, info. See > http://www.postgresql.org/docs/9.3/static/rowtypes.html, for example. > > Note that this behaviour is the same as in SELECT lists; SELECT (id, > info) FROM foobar; will also only give you a single column. Hello Marko. Thanks for the explanation and sorry for not spotting my mistake. Please close this bug as invalid. It would however have helped if I had gotten back the expected type and the actually provided type; even in verbose mode this was not supplied. Would this be possible, or is there already a configuration option to enable this? Cheers, Matt -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs