pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dmitry Molotkov <aldarund@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15446: Crash on ALTER TABLE
Date: Sat, 5 Jan 2019 09:09:40 -0800
Message-ID: <20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.de> (raw)
In-Reply-To: <CAEZATCXVPUu+hV1n_-V8Q2-TVtof=kzpdAv01VJmzGmTwsQ9NA@mail.gmail.com>
References: <CADfhRDKYosWqKg8OV8HwG2iMhbPYJxqPVesOM_cdE=ESKxKi4g@mail.gmail.com>
	<20181027144557.6uil4sqrvor25m3x@alvherre.pgsql>
	<CADfhRDJHkTFeO8TxesK1Ysrg+48XW1Kd+FULQd5+6Dd=Sj8J2w@mail.gmail.com>
	<CADfhRDLaB4T-oGJujgpcDb05Q3cs0cuUws7UWGqkxR761T5Tpw@mail.gmail.com>
	<20190104211700.jloztzladojvpxij@alap3.anarazel.de>
	<CADfhRDJ6XPaJtF8D4X5P3TB_67xXKp4dxgNJ=Kwd63MwLsSYUg@mail.gmail.com>
	<20190104222542.5zcrjv5p24ssw7te@alap3.anarazel.de>
	<CADfhRDJ5_zgWy5soYZ-O-Ees6bs9DgDDwbvFjrwK7r3g1Xc9sA@mail.gmail.com>
	<14358.1546648708@sss.pgh.pa.us>
	<CAEZATCXVPUu+hV1n_-V8Q2-TVtof=kzpdAv01VJmzGmTwsQ9NA@mail.gmail.com>

Hi,

On 2019-01-05 12:11:45 +0000, Dean Rasheed wrote:
> It looks like the problem was introduced in PG11 by 16828d5c02 (Fast
> ALTER TABLE ADD COLUMN with a non-NULL default). The first ALTER TABLE
> adds a new column with a non-null default, setting atthasmissing and
> attmissingval. Then the second ALTER TABLE changes the type of the new
> column, but it fails to update attmissingval to match, and thus it
> falls over when trying to re-open the relation because the value in
> attmissingval is no longer compatible with the attribute type.

Paging Dr Dunstan.

Greetings,

Andres Freund




view thread (23+ messages)  latest in thread

Message-ID: <20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.de>
Permalink:  ../20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.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: andres@anarazel.de, dean.a.rasheed@gmail.com, andrew@dunslane.net, tgl@sss.pgh.pa.us, aldarund@gmail.com, alvherre@2ndquadrant.com
  Subject: Re: BUG #15446: Crash on ALTER TABLE
  In-Reply-To: <20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.de>
  References: <CADfhRDKYosWqKg8OV8HwG2iMhbPYJxqPVesOM_cdE=ESKxKi4g@mail.gmail.com> <20181027144557.6uil4sqrvor25m3x@alvherre.pgsql> <CADfhRDJHkTFeO8TxesK1Ysrg+48XW1Kd+FULQd5+6Dd=Sj8J2w@mail.gmail.com> <CADfhRDLaB4T-oGJujgpcDb05Q3cs0cuUws7UWGqkxR761T5Tpw@mail.gmail.com> <20190104211700.jloztzladojvpxij@alap3.anarazel.de> <CADfhRDJ6XPaJtF8D4X5P3TB_67xXKp4dxgNJ=Kwd63MwLsSYUg@mail.gmail.com> <20190104222542.5zcrjv5p24ssw7te@alap3.anarazel.de> <CADfhRDJ5_zgWy5soYZ-O-Ees6bs9DgDDwbvFjrwK7r3g1Xc9sA@mail.gmail.com> <14358.1546648708@sss.pgh.pa.us> <CAEZATCXVPUu+hV1n_-V8Q2-TVtof=kzpdAv01VJmzGmTwsQ9NA@mail.gmail.com> <20190105170940.2qrbilpxmmxyf4tr@alap3.anarazel.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