Skip site navigation (1) Skip section navigation (2)

"zombie" table in psql

From: Ulf Mehlig <umehlig(at)uni-bremen(dot)de>
To: pgsql-general(at)postgreSQL(dot)org
Subject: "zombie" table in psql
Date: 1999-01-20 17:51:55
Message-ID: 199901201802.TAA02932@uni-bremen.de (view raw or flat)
Thread:
Lists: pgsql-general
Hello everybody!

Consider this (psql of 6.4, on i386-Linux 2.02b7):

   db=> begin work;
   BEGIN
   db=> create table xxx (xx smallint);
   CREATE
   db=> insert into xxx values (1);
   INSERT 136937 1
   db=> rollback;
   ABORT

The following is interesting:

   db=> select * from xxx;
   ERROR:  xxx: Table does not exist.
   db=> create table xxx (xx smallint);
   ERROR:  xxx relation already exists

Hmmm. And then:

   db=> drop table xxx;
   ERROR:  Relation xxx Does Not Exist!                         
   db=> \dt
   NOTICE:  (transaction aborted): queries ignored until END
   Couldn't find any tables!                 

After quitting and re-entering psql it is possible again to create a
table "xxx". Seems to be a little bug, or did I overlook something?

BTW, is ist possible to get "nested" transactions (e.g., to realize a
multilevel "undo" in data entry forms)? 

Thanks,
Ulf

-- 
======================================================================
Ulf Mehlig    <umehlig(at)zmt(dot)uni-bremen(dot)de>
              Center for Tropical Marine Ecology/ZMT, Bremen, Germany
----------------------------------------------------------------------

pgsql-general by date

Next:From: Jackson, DeJuanDate: 1999-01-20 18:38:51
Subject: RE: [GENERAL] {OT} Maximum execution time exceeded
Previous:From: PostgreSQLDate: 1999-01-20 17:24:59
Subject: Maximum execution time exceeded

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group