Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA42448 for ; Tue, 22 Jun 1999 10:48:53 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id KAA16606; Tue, 22 Jun 1999 10:45:23 -0400 (EDT) From: Bruce Momjian Message-Id: <199906221445.KAA16606@candle.pha.pa.us> Subject: Re: [SQL] Create table doesn't always respect atomicity of transactions. In-Reply-To: <199906220521.WAA27197@netcom15.netcom.com> from Zalman Stern at "Jun 21, 1999 10:21:48 pm" To: Zalman Stern Date: Tue, 22 Jun 1999 10:45:23 -0400 (EDT) CC: pgsql-sql@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > Off and on, I've been seeing a situation where the following code: > begin; > create table foo (name text); > abort; leaves a file called "foo" in the database directory and > further attempts to create a relation called foo or to select anything from > it all fail. The database has been left in an inconsistent state. > > I filed a bug report on this earlier today as it seemed dead on repeatable. > But then I recompiled with debug symbols to have a go at figuring out what > was up and the problem went away. So I recompiled with full optimization > again and the problem still doesn't occur now. I've been starting over each > time with a fresh database so if it was some property of the database > itself, then that state is lost. But this is not the first time I've seen > this. Has any one else seen such a thing? Its rather troublesome 'cause when > it does happen, the database is somewhat unuseable until I remove the file > in question and I hate going in and removing files that are supposed to be > under Postgres' control... We fixed this problem in 6.4 or 6.5. Not sure why it goes away. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026