pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: taich@gmx.at
To: pgsql-general@postgresql.org
Subject: Bug with sequence
Date: 18 Nov 2002 07:45:19 -0800
Message-ID: <92c0776e.0211180745.49911131@posting.google.com> (raw)

Hi,

I recently installed pg 7.2.3 on my linux box and discovered that
there are some problems with datatype serial and sequence.

1.) If you create a table with a datatype serial, the corrsponding
sequence will be created, but if you drop the table the sequence is
not dropped.

2.) If you create a sequence and grant it to public one cant use
currval() until one used setval() or nextval().
"ERROR:  midnr.currval is not yet defined in this session"

3.) Sometimes one gets 'not enogh privileges' error when using
nexval()


Am I the first one who discovered that?

Thanks
Thomas



view thread (19+ messages)  latest in thread

Message-ID: <92c0776e.0211180745.49911131@posting.google.com>
Permalink:  ../92c0776e.0211180745.49911131@posting.google.com/
Also on:    postgresql.org/message-id/92c0776e.0211180745.49911131@posting.google.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: taich@gmx.at, pgsql-general@postgresql.org
  Subject: Re: Bug with sequence
  In-Reply-To: <92c0776e.0211180745.49911131@posting.google.com>

* 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