Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhFyD-0007xp-BH for pgsql-bugs@arkaria.postgresql.org; Thu, 13 May 2021 18:22:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lhFyC-0008SQ-1t for pgsql-bugs@arkaria.postgresql.org; Thu, 13 May 2021 18:22:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhFyB-0008SI-0O for pgsql-bugs@lists.postgresql.org; Thu, 13 May 2021 18:21:59 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhFy8-0007EK-7O for pgsql-bugs@lists.postgresql.org; Thu, 13 May 2021 18:21:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 85ED05C005E; Thu, 13 May 2021 14:21:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 13 May 2021 14:21:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=opsuZNbhi4auLplElKnkJ+CE9Y3iFJhl+k+NXqXV51M=; b=kyN86HlU dp2n0FdirXpYEE19jy3csK8zP1/h0KgZTz0oHODM0vpQrIW656GU06l0Ls7IxJp7 DcS9qafJDUh4eOrYybINph7dAdY3//YhvJN/qCYcOK0IqQd56kdmUjZZC9WA70Qe iUFhxPDXKmQC/dWYvzKoapkTFlF7iuEQ4KYXni9S4lTe/hNdtW1fDfEm5otqk3Oj +LS+cEGb+eNDKVMxOwWHl9yiimhRVU1LzLVYWKLkXTx55oNnPCDsNu3La5c1zSYk mYZEJp/OPBBI28+55xb2hj4TIWxXmqeEwLPRgatYfm147JVqdL0zq+qpES7h849q HkbqqBxWjGTrnw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehgedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggugfgjfgesth ekredttderudenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepueffhfejie euueffgedvudekgeeltdeviedvieeufeeiieevgfetheeufeethedvnecukfhppeduledt rdelhedrudelrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 May 2021 14:21:43 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 25F402A0ADC; Thu, 13 May 2021 14:21:41 -0400 (-04) Date: Thu, 13 May 2021 14:21:41 -0400 From: Alvaro Herrera To: Tom Lane Cc: jacevedo@we-techs.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17008: pg_dump doesn't dump a sequence with bigint type Message-ID: <20210513182141.GA20432@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1578747.1620929461@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-May-13, Tom Lane wrote: > Alvaro Herrera writes: > > I suggest to run this: > > ALTER SEQUENCE projects_historydata_id_seq OWNED BY public.projects_historydata.id > > and then things will work better. > > This won't in itself fix the sequence's width; you'd need > to do some additional ALTERs if that's wrong. True. What I'm thinking is that Jaime misunderstood what the actual problem is; note that he posted the CREATE SEQUENCE statement for an unrelated sequence, and didn't post any statement for the correct one. He thinks the problem is related to the sequence being bigint, but I doubt it really is. -- Álvaro Herrera Valdivia, Chile "No tengo por qué estar de acuerdo con lo que pienso" (Carlos Caszeli)