pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FW: Weird problem, cant delete table !
2+ messages / 2 participants
[nested] [flat]

* FW: Weird problem, cant delete table !
@ 2004-12-21 12:51  Thomas Madsen <tm@softcom.dk>
  0 siblings, 1 reply; 2+ messages in thread

From: Thomas Madsen @ 2004-12-21 12:51 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: FW: Weird problem, cant delete table !
@ 2004-12-21 15:59  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Thomas Madsen <tm@softcom.dk>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2004-12-21 15:59 UTC (permalink / raw)
  To: Thomas Madsen <tm@softcom.dk>; +Cc: pgsql-admin

"Thomas Madsen" <tm@softcom.dk> writes:
> 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

Please show us those records, don't just claim they exist.  I'd like to
see the same search on pg_type, too.  And exactly what PG version is this?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-12-21 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-21 12:51 FW: Weird problem, cant delete table ! Thomas Madsen <tm@softcom.dk>
2004-12-21 15:59 ` Tom Lane <tgl@sss.pgh.pa.us>

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