pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: boskowski+coreybernal@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14406: Statement fails after upgrade to 9.6.1
Date: Mon, 31 Oct 2016 11:58:31 -0400
Message-ID: <18457.1477929511@sss.pgh.pa.us> (raw)
In-Reply-To: <20161031124240.15993.40927@wrigleys.postgresql.org>
References: <20161031124240.15993.40927@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

boskowski+coreybernal@gmail.com writes:
> After upgrading from 9.5.4 to 9.6.1 using pg_upgrade with links an UPDATE
> (prepared) statement that previously worked started raising

> ERROR:  table row type and query-specified row type do not match
> DETAIL:  Query provides a value for a dropped column at ordinal position
> 19.

> I managed to solve this by creating an identical table, populating with
> INSERT/SELECT and swapping the tables by renaming them, all in one
> transaction.

> Please let me know what detail information can be helpful to you.

Without a self-contained test case, we're not going to be able to do much
with this report.  Presumably a test case would look something like
"create a table like this under 9.5; drop some columns in it like this;
pg_upgrade to 9.6; execute this query".  But nobody's going to try to
fill in all those details by guessing.

			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 (4+ messages)  latest in thread

Message-ID: <18457.1477929511@sss.pgh.pa.us>
Permalink:  ../18457.1477929511@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18457.1477929511@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, boskowski+coreybernal@gmail.com
  Subject: Re: BUG #14406: Statement fails after upgrade to 9.6.1
  In-Reply-To: <18457.1477929511@sss.pgh.pa.us>
  References: <20161031124240.15993.40927@wrigleys.postgresql.org> <18457.1477929511@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