Re: Table both does not and does exist! wth? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Table both does not and does exist! wth?
Date
Msg-id 201012170805.21429.adrian.klaver@gmail.com
Whole thread Raw
In response to Table both does not and does exist! wth?  (Melvin Davidson <melvin6925@yahoo.com>)
Responses Re: Table both does not and does exist! wth?  (Melvin Davidson <melvin6925@yahoo.com>)
List pgsql-general
On Friday 17 December 2010 7:47:44 am Melvin Davidson wrote:
> PostgreSQL 8.3.11 on i686-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2
> 20080704 (Red Hat 4.1.2-46) Linux version 2.6.18-194.26.1.el5
> (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat
> 4.1.2-48)) #1 SMP Tue Nov 9 12:54:40 EST 2010
>
> How is this possible? I've been working as a PostgreSQL DBA for 5 years,
> and frankly I'm baffled.
>
> I had previosly created a TEMP table in a session, but later decided to
> make it a permanent table. However, when I attempted to do so, I came
> across a very weird problem. PostgreSQL 1st denies that the table exists,
> because I do a DROP TABLE IF EXISTS.
> But when I do a CREATE TABLE, it says it is already there!
>
> At first I thought I might have to do with shared_buffer memory. But after
> shutting down both the client and server, the problem persists. In fact, I
> have even dropped and reloaded the database, and it still occurs.
>
> Am I missing something obvious?
> Or does PostgreSQL have some undocumented, hidden catalog I am not aware of
> where it tracks TEMP tables?
>

Have you tried a REINDEX on pg_class as superuser?


--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Searing array fields - or should I redesign?
Next
From: "Mark Watson"
Date:
Subject: Copy From suggestion