pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Madsen <tm@softcom.dk>
To: pgsql-admin@postgresql.org
Subject: FW: Weird problem, cant delete table !
Date: Tue, 21 Dec 2004 13:51:13 +0100
Message-ID: <2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local> (raw)

I have a postgresql ( psql (PostgreSQL) 7.2.1 ) database where i have a 
problem deleting 1 off the tables

Im logged in locally and access it with root

In the database there is among more, 2 tables with similar names:

     infected
     infected_

When i try to delete the "infected_" ( drop table "infected_";)  it says
ERROR:  table "infected_" does not exist.

When i try to recreate it
( create table infected_ as select filename from infected limit 10; ) it
says : type named infected_ already exists

When i check the access rights ( \z ) it looks like i have no rights

more tables/rights
infected       {=,postgres=arwdRxt,mailadmin=arwdRxt,root=arwdRxt}
infected_
more tables/rights

When i try to give me rights on
the "infected_" ( grant all on infected_ to mailadmin; )
it says ERROR:  relation "infected_" not found

when i do a query to pg_class like this it finds a record select * from
pg_class where relname like 'infected_%'; it does find some records

when i try to make a dump off the database it also complains !
pg_dump: Attempt to lock table "infected_" failed.  ERROR:  Relation 
"infected_" does not exist

Im at a lost here !
Please if anyone could guide me in the right direction  :-)
i would be very thankfull !

Best Regards
Nikolaj Steensgaard




view thread (2+ messages)  latest in thread

Message-ID: <2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local>
Permalink:  ../2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local/
Also on:    postgresql.org/message-id/2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tm@softcom.dk
  Subject: Re: FW: Weird problem, cant delete table !
  In-Reply-To: <2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local>
  References: <2D4F76DE20C9B14BBF46FD1EC07FD441134527@earth.softcom.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox