pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Patrik Kudo <kudo@partitur.se>
To: Tim Perdue <perdue@raccoon.com>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Setting Next Value in Sequence
Date: Tue, 16 Mar 1999 14:22:03 +0100
Message-ID: <36EE5AFB.E9F2771D@partitur.se> (raw)
References: <009801be6fa9$c8c0d770$0b8c5aa5@timnt.weather.net>

Hi,

You can't manipulate the sequence that way. You can do the following
though:

select setval('seq_mailid', 1375000);

Hope that helps.

Regards,
Patrik Kudo

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.
> 
> Tim



view thread (8+ messages)  latest in thread

Message-ID: <36EE5AFB.E9F2771D@partitur.se>
Permalink:  ../36EE5AFB.E9F2771D@partitur.se/
Also on:    postgresql.org/message-id/36EE5AFB.E9F2771D@partitur.se

 · 

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: kudo@partitur.se, perdue@raccoon.com, pgsql-sql@hub.org
  Subject: Re: [SQL] Setting Next Value in Sequence
  In-Reply-To: <36EE5AFB.E9F2771D@partitur.se>
  References: <009801be6fa9$c8c0d770$0b8c5aa5@timnt.weather.net> <36EE5AFB.E9F2771D@partitur.se>

* 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