pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Victor Yegorov <vyegorov@gmail.com>
Cc: Claudio Freire <klaussfreire@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pg_upgrade and materialized views
Date: Wed, 21 Feb 2018 18:45:26 -0500
Message-ID: <1695.1519256726@sss.pgh.pa.us> (raw)
In-Reply-To: <20180221173344.wjp4r6lxhcm35pzv@alap3.anarazel.de>
References: <CAGTBQpbrY9CdRGGhyBZ9yqY4jWaGC85rUF4X+R7d-aim=mBNsw@mail.gmail.com>
	<23575.1519162064@sss.pgh.pa.us>
	<CAGTBQpY0wu1UiPUMjDCTrxaR92EETXBqo0+fPDGeBbg-v64J7A@mail.gmail.com>
	<24838.1519163208@sss.pgh.pa.us>
	<CAGTBQpZHSPXNZh-DY319FVuuz3o1c-fH-Dkc9R656MOP0AgcPw@mail.gmail.com>
	<CAGTBQpZ2-7hBs0T+JRFWqzvW_qqo=Qe+oYivnM1OPZGp2z0KOQ@mail.gmail.com>
	<CAGnEboipw-MY+beePKfhYO9c+Vqi_c44n-Fhr+2vN4H5VDHMnw@mail.gmail.com>
	<8092.1519225692@sss.pgh.pa.us>
	<20180221173344.wjp4r6lxhcm35pzv@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> On 2018-02-21 10:08:12 -0500, Tom Lane wrote:
>> Yeah, that does look suspiciously like a set of facts matching this
>> problem :-(

> I'd personally say ;), given that it's one less potentially data
> corrupting bug to worry about ;). And it's one that can be fixed without
> dataloss to boot.

I've pushed a fix for this.  I concluded after further study that there
wasn't really much call for a unified notion of applicable relkinds,
because actually what this code is dealing with is "relkinds that need
preservation of dropped columns" and "relkinds that need preservation
of relfrozenxid", both of which are somewhat different from "relkinds
that have storage".  What's really lacking is documentation, which
I attempted to supply.  For the code change proper, I did what you
suggested and split the relfrozenxid hacking into an independent
if-block.

			regards, tom lane




view thread (31+ messages)  latest in thread

Message-ID: <1695.1519256726@sss.pgh.pa.us>
Permalink:  ../1695.1519256726@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1695.1519256726@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, andres@anarazel.de, vyegorov@gmail.com, klaussfreire@gmail.com
  Subject: Re: pg_upgrade and materialized views
  In-Reply-To: <1695.1519256726@sss.pgh.pa.us>
  References: <CAGTBQpbrY9CdRGGhyBZ9yqY4jWaGC85rUF4X+R7d-aim=mBNsw@mail.gmail.com> <23575.1519162064@sss.pgh.pa.us> <CAGTBQpY0wu1UiPUMjDCTrxaR92EETXBqo0+fPDGeBbg-v64J7A@mail.gmail.com> <24838.1519163208@sss.pgh.pa.us> <CAGTBQpZHSPXNZh-DY319FVuuz3o1c-fH-Dkc9R656MOP0AgcPw@mail.gmail.com> <CAGTBQpZ2-7hBs0T+JRFWqzvW_qqo=Qe+oYivnM1OPZGp2z0KOQ@mail.gmail.com> <CAGnEboipw-MY+beePKfhYO9c+Vqi_c44n-Fhr+2vN4H5VDHMnw@mail.gmail.com> <8092.1519225692@sss.pgh.pa.us> <20180221173344.wjp4r6lxhcm35pzv@alap3.anarazel.de> <1695.1519256726@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