From: Ice Planet <ice@adiemus.sk>
To: pgsql-sql@postgresql.org
Subject: drop sequence in transaction
Date: Mon, 4 Sep 2000 14:15:53 +0200
Message-ID: <SAK.2000.09.04.oemrtdlm@adiemus> (raw)
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 | name
last_value | integer
increment_by | integer
max_value | integer
min_value | integer
cache_value | integer
is_cycled | char
is_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
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-sql@postgresql.org
Cc: ice@adiemus.sk
Subject: Re: drop sequence in transaction
In-Reply-To: <SAK.2000.09.04.oemrtdlm@adiemus>
References: <SAK.2000.09.04.oemrtdlm@adiemus>
* 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