Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 699104758FE for ; Thu, 21 Nov 2002 14:15:33 -0500 (EST) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id 4E771475E60 for ; Thu, 21 Nov 2002 14:15:31 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id gALJEuZ21767; Thu, 21 Nov 2002 14:14:56 -0500 (EST) From: Bruce Momjian Message-Id: <200211211914.gALJEuZ21767@candle.pha.pa.us> Subject: Re: [GENERAL] Bug with sequence In-Reply-To: <1037830378.24840.40.camel@linda> To: Oliver Elphick Date: Thu, 21 Nov 2002 14:14:56 -0500 (EST) Cc: Robert Treat , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/856 X-Sequence-Number: 32072 Oliver Elphick wrote: > I deleted the first table. The sequence was deleted too, leaving the > default of the second table referring to a non-existent sequence. > > > Could this be a TODO item in 7.4, to add a dependency check when a > sequence is set as the default without being created at the same time? Added to TODO: * Have sequence dependency track use of DEFAULT sequences, seqname.nextval -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073