drop sequence in transaction - Mailing list pgsql-sql

From Ice Planet
Subject drop sequence in transaction
Date
Msg-id SAK.2000.09.04.oemrtdlm@adiemus
Whole thread Raw
List pgsql-sql
Hello

I have a litle problem with sequences.
I use drop sequence in transaction, is this possible?

If yes, then i have done:
1. begin
2. get some data
3. drop sequence s_acc
4. create sequence s_acc...
5. rollback

And after this the database responds like this:

test=# \d s_acc   Sequence "s_acc"  Attribute   |  Type
---------------+---------sequence_name | namelast_value    | integerincrement_by  | integermax_value     |
integermin_value    | integercache_value   | integeris_cycled     | charis_called     | char
 

test=# select * from s_acc;
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
ERROR:  cannot open relation s_acc
test=# select last_value from s_acc;
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
NOTICE:  mdopen: couldn't open s_acc: No such file or directory
ERROR:  cannot open relation s_acc
test=#

I realy don't know what means this?

Thank's for help...
                      Best regards                                             Ice Planet

e-mail: ice@adiemus.sk
ICQ#: 67765483




pgsql-sql by date:

Previous
From: Jan Wieck
Date:
Subject: Re: pg_hba.conf
Next
From: Tom Lane
Date:
Subject: Re: Order by in stored functions