pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Egon Reetz <reetz@usco.de>
To: raja kumar thatte <trajakumar@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to alter sequence.
Date: Wed, 04 Dec 2002 14:38:18 +0100
Message-ID: <3DEE054A.A157C1B6@usco.de> (raw)
References: <20021204122900.96540.qmail@web20608.mail.yahoo.com>

Drop the sequence and recreate with a min. value greater your last value and
the new max. value.

Egon


raja kumar thatte wrote:

> Hai friends,
> I have a sequence called raj_seq with max value 3000.
> I have a table, with one field haveing
> nextvalu('raj_seq') as default value.;
> now i wanted to increase the max value of the raj_seq
> to 9999999.
> How to do this change?
> If i drop and recreate the raj_seq, then i have to
> recreate the table and all triggers working on that
> table.But it is not an acceptable solution.
> So with out droping raj_seq , how do I solve this
> problem.
> Thanks in advance.
> have a nice time.
> raja
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org




view thread (23+ messages)  latest in thread

Message-ID: <3DEE054A.A157C1B6@usco.de>
Permalink:  ../3DEE054A.A157C1B6@usco.de/
Also on:    postgresql.org/message-id/3DEE054A.A157C1B6@usco.de

 · 

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-admin@postgresql.org
  Cc: reetz@usco.de, trajakumar@yahoo.com
  Subject: Re: how to alter sequence.
  In-Reply-To: <3DEE054A.A157C1B6@usco.de>
  References: <20021204122900.96540.qmail@web20608.mail.yahoo.com> <3DEE054A.A157C1B6@usco.de>

* 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