Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2d78-0007Pu-Nn for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jul 2014 09:15:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2d78-0003T6-1L for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Jul 2014 09:15:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2d76-0003QN-FN for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 09:15:32 +0000 Received: from mout3.freenet.de ([2001:748:100:40::2:5]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2d72-0002ij-JA for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 09:15:31 +0000 Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout3.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (port 25) (Exim 4.82 #1) id 1X2d6z-0003r9-Er for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 11:15:25 +0200 Received: from localhost ([::1]:43854 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (Exim 4.82 #1) id 1X2d6z-0001r0-Ag for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 11:15:25 +0200 Received: from mx6.freenet.de ([195.4.92.16]:52240) by mjail0.freenet.de with esmtpa (ID hoschiraffel@freenet.de) (Exim 4.82 #1) id 1X2d49-0000QX-7m for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 11:12:29 +0200 Received: from 178-82-51-235.dynamic.hispeed.ch ([178.82.51.235]:41630 helo=[192.168.0.16]) by mx6.freenet.de with esmtpsa (ID hoschiraffel@freenet.de) (TLSv1:DHE-RSA-AES128-SHA:128) (port 465) (Exim 4.82 #1) id 1X2d49-00052z-3A for pgsql-bugs@postgresql.org; Thu, 03 Jul 2014 11:12:29 +0200 Message-ID: <53B51E7C.7020706@freenet.de> Date: Thu, 03 Jul 2014 11:12:28 +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> <53B411E3.6070100@freenet.de> <9482.1404319526@sss.pgh.pa.us> In-Reply-To: <9482.1404319526@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originated-At: 178.82.51.235!41630 X-Pg-Spam-Score: -1.9 (-) 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 07/02/2014 18:45, Tom Lane wrote: > Matthias Raffelsieper writes: >> 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. > > Yeah, I came to the same conclusion. I've done something about this: > http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=7980ab30ecf36162699f138697e2ff5589d9063e > Wow, that was fast, thanks a lot. I just had the time to check it out and I believe that this also helps in other cases where one might mix up the RETURNING columns. Thanks again, Matt -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs