Re: [HACKERS] Unable to create tables...

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>
Cc: Postgres Hackers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Unable to create tables...
Date: 1999-08-06 19:59:33
Message-ID: 3.0.1.32.19990806125933.00e02428@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

At 02:46 PM 8/6/99 -0500, Ross J. Reedstrom wrote:

>Check to see if there are files in the pgsql/data/base/'yourdbname'
>directory called 'pgdump_oid' and 'foo'. Some situations lead to a table
>being almost completely deleted, but leaving the file behind. Doesn't
>explain the 'table still there' phenomena, but might let you recreate a
>'dropped' table.

Thanks, I thought of this one myself, and deleted "foo". This is
when it got into the mode of allowing "create table foo..." and
an apparently successful "drop table foo", but with "foo" left
behind in pg_class (I think that's right) and "select count(*)
from foo" returning 0 rows (i.e. the relation really seems to
exist!)

>
>Ross
>P.S. once common problem is dropping a table doesn't always get all the
>objects created by 'convenience' types. For example, not not sure the
>sequence created for a serial type gets dropped with its table. In fact,
>I'm pretty sure it doesn't (and, for now, shouldn't)

Yes, this isn't my problem, though.

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Don Baccus 1999-08-06 20:00:19 Re: [HACKERS] Unable to create tables...
Previous Message Lamar Owen 1999-08-06 19:53:52 Re: [HACKERS] Unable to create tables...

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 1999-08-06 20:00:19 Re: [HACKERS] Unable to create tables...
Previous Message Lamar Owen 1999-08-06 19:53:52 Re: [HACKERS] Unable to create tables...