From: Christoph Berg <christoph.berg@credativ.de>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15238: Sequence owner not updated when owning table is foreign
Date: Tue, 25 Sep 2018 14:06:35 +0200
Message-ID: <20180925120634.GB19816@msg.credativ.de> (raw)
In-Reply-To: <4163c7cb-bc8f-3767-21e7-e9dee69df04c@lab.ntt.co.jp> <20180615034001.lgsbilj7pqczofj7@alvherre.pgsql> <e3cf9eb8-add9-f523-b3f8-de657e091a14@2ndquadrant.com>
Re: Peter Eisentraut 2018-06-15 <e3cf9eb8-add9-f523-b3f8-de657e091a14@2ndquadrant.com>
> On 6/12/18 09:21, PG Bug reporting form wrote:
> > If a foreign table has a sequence attached (e.g. if the foreign table has a
> > "serial" column), and the foreign table owner is updated, the sequence owner
> > is not updated, leading to errors on restore:
>
> Yup, it only recurses to sequences for regular tables and materialized
> views. I suggest to remove the relkind check altogether. See attached
> patch.
Did that ever get applied? I can't find it in the git log.
Christoph
--
Senior Berater, Tel.: +49 2166 9901 187
credativ GmbH, HRB Mönchengladbach 12080, USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer
Datenschutzerklärung: https://www.credativ.de/datenschutz
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: christoph.berg@credativ.de, peter.eisentraut@2ndquadrant.com, alvherre@2ndquadrant.com, Langote_Amit_f8@lab.ntt.co.jp
Subject: Re: BUG #15238: Sequence owner not updated when owning table is foreign
In-Reply-To: <20180925120634.GB19816@msg.credativ.de>
References: <20180925120634.GB19816@msg.credativ.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