pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Raffelsieper <hoschiraffel@freenet.de>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #10836: Rule with RETURNING claims incorrect type
Date: Wed, 02 Jul 2014 16:06:27 +0200
Message-ID: <53B411E3.6070100@freenet.de> (raw)
In-Reply-To: <53B40E5B.1050209@joh.to>
References: <20140702130537.5170.32873@wrigleys.postgresql.org>
	<53B40E5B.1050209@joh.to>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (6+ messages)  latest in thread

Message-ID: <53B411E3.6070100@freenet.de>
Permalink:  ../53B411E3.6070100@freenet.de/
Also on:    postgresql.org/message-id/53B411E3.6070100@freenet.de

 · 

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-bugs@postgresql.org
  Cc: hoschiraffel@freenet.de
  Subject: Re: BUG #10836: Rule with RETURNING claims incorrect type
  In-Reply-To: <53B411E3.6070100@freenet.de>
  References: <20140702130537.5170.32873@wrigleys.postgresql.org> <53B40E5B.1050209@joh.to> <53B411E3.6070100@freenet.de>

* 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