pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Tim Perdue <perdue@raccoon.com>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
Date: Tue, 16 Mar 1999 15:03:44 +0200
Message-ID: <l03110708b31406f2ab41@[147.233.159.109]> (raw)
In-Reply-To: <009801be6fa9$c8c0d770$0b8c5aa5@timnt.weather.net>

At 14:37 +0200 on 16/3/99, Tim Perdue wrote:


> Maybe it's due to sleep deprivation, but this is not working. I'm trying to
> update a seqence to a higher number, and it won't let me.
>
> db_domain=> update seq_mailid set last_value=1375000;
> ERROR:  You can't change sequence relation seq_mailid
>
> My sense of humor has totally faded over the last two days, and I would
> appreciate sone input.

Do you (or the user who is trying to do this) own the sequence? Do you have
the right access rights to it?

In any case, I always thought the best is to drop the sequence and create
it with a proper start number.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (8+ messages)  latest in thread

Message-ID: <l03110708b31406f2ab41@[147.233.159.109]>
Permalink:  ../l03110708b31406f2ab41@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03110708b31406f2ab41@[147.233.159.109]

 · 

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 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: herouth@oumail.openu.ac.il, perdue@raccoon.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Setting Next Value in Sequence
  In-Reply-To: <l03110708b31406f2ab41@[147.233.159.109]>
  References: <009801be6fa9$c8c0d770$0b8c5aa5@timnt.weather.net> <l03110708b31406f2ab41@[147.233.159.109]>

* 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