Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyqqe-0000CX-0W for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Aug 2019 05:01:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hyqqc-00058C-Gb for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Aug 2019 05:01:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyqqc-000584-8x for pgsql-bugs@lists.postgresql.org; Sat, 17 Aug 2019 05:01:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hyqqY-0001lR-Ty for pgsql-bugs@lists.postgresql.org; Sat, 17 Aug 2019 05:01:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7H51fdW023618; Sat, 17 Aug 2019 01:01:42 -0400 From: Tom Lane To: "David G. Johnston" cc: steven.morris@hypermediasystems.com, PostgreSQL mailing lists Subject: Re: BUG #15962: Cannot drop table that previously had a 'serial' column In-reply-to: References: <15962-ee5091011fbd825a@postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Fri, 16 Aug 2019 17:17:48 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23616.1566018101.1@sss.pgh.pa.us> Date: Sat, 17 Aug 2019 01:01:41 -0400 Message-ID: <23617.1566018101@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "David G. Johnston" writes: > On Fri, Aug 16, 2019, 4:25 PM PG Bug reporting form > wrote: >> Any suggestions on how to remove the dependency it still has ? or will I >> have to make a New sequence for the new table and call it ? > Alter sequence? ALTER SEQUENCE ... OWNED BY, in particular, should help here. regards, tom lane