Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4m75-00052h-S1 for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Sep 2018 12:06:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4m71-0000gx-BY for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Sep 2018 12:06:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4m71-0000gq-1l for pgsql-bugs@lists.postgresql.org; Tue, 25 Sep 2018 12:06:43 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4m6w-0000ZM-8g for pgsql-bugs@lists.postgresql.org; Tue, 25 Sep 2018 12:06:41 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 5E3821E1A06; Tue, 25 Sep 2018 14:06:35 +0200 (CEST) Received: from msg.credativ.de (fw-front.credativ.com [62.154.226.94]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cbe@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 4003E1E193D; Tue, 25 Sep 2018 14:06:35 +0200 (CEST) Date: Tue, 25 Sep 2018 14:06:35 +0200 From: Christoph Berg To: Peter Eisentraut , Alvaro Herrera , Amit Langote Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15238: Sequence owner not updated when owning table is foreign Message-ID: <20180925120634.GB19816@msg.credativ.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4163c7cb-bc8f-3767-21e7-e9dee69df04c@lab.ntt.co.jp> <20180615034001.lgsbilj7pqczofj7@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Peter Eisentraut 2018-06-15 > 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