RE: [GENERAL] Thing that makes me go "Hmmm"

From: Boris Goldowsky <boris(at)spaceheater(dot)infoplease(dot)com>
To: Bruce Tong <zztong(at)laxmi(dot)ev(dot)net>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: RE: [GENERAL] Thing that makes me go "Hmmm"
Date: 1999-05-04 17:38:16
Message-ID: 14127.12424.794230.676510@griddle.infoplease.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>>> Bruce Tong writes:

>> PostgreSQL wants to create a file for each table.

BT> /var/lib/pgsql/base/zztong/*

BT> There is a file there named "mytemp" but it is empty.

I've run into this situation before -- it appears to be a Postgres bug.
You start a command that creates a table, and cancel it, or it dies
for some external reason. Sometimes you are left with an empty file
in the database directory, at which point (a) you cannot create a
table with that name, since it's apparently taken, and (b) you cannot
drop the table, because it doesn't really exist.

However, you CAN remove the empty file manually, and everything should
be well again (or at least, it has worked for me).

Apparently postgres misses a step of cleanup that it ought to do when
table-creating commands fail.

Bng

Browse pgsql-general by date

  From Date Subject
Next Message Mike Haberman 1999-05-04 17:54:10 subscribe
Previous Message Dustin Sallings 1999-05-04 17:08:57 Re: [GENERAL] postgreSQL for storing a database of documents