pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: joan@sanchezsabe.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14470: Dropping a column produces "table row type and query-specified row type do not match" error
Date: Tue, 20 Dec 2016 19:30:57 -0500
Message-ID: <23905.1482280257@sss.pgh.pa.us> (raw)
In-Reply-To: <20161220233352.25620.31226@wrigleys.postgresql.org>
References: <20161220233352.25620.31226@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
joan@sanchezsabe.com writes:
> At this point, if we drop one column (not used at all by the previous
> function)...
> ALTER TABLE users
> DROP COLUMN column_that_we_will_drop ;
> ... this makes the next statement to generate an error
> SELECT * FROM fun('a@b.com');
> ERROR: table row type and query-specified row type do not match
> SQL state: 42804
> Detail: Query provides a value for a dropped column at ordinal position 3.
> Context: SQL function "fun" statement 1
> SELECT * FROM fun('a@b.com');
I can't reproduce this in HEAD or 9.6 branch tip. I believe it was
already fixed by this patch, which went in a bit after 9.6.1:
https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=f4d865f22
But thanks for the report!
regards, tom lane
--
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 (2+ messages)
Message-ID: <23905.1482280257@sss.pgh.pa.us> Permalink: ../23905.1482280257@sss.pgh.pa.us/ Also on: postgresql.org/message-id/23905.1482280257@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-bugs@postgresql.org Cc: tgl@sss.pgh.pa.us, joan@sanchezsabe.com Subject: Re: BUG #14470: Dropping a column produces "table row type and query-specified row type do not match" error In-Reply-To: <23905.1482280257@sss.pgh.pa.us> References: <20161220233352.25620.31226@wrigleys.postgresql.org> <23905.1482280257@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