From: | Joel Burton <joel(at)joelburton(dot)com> |
---|---|
To: | Dustin Sallings <dustin(at)spy(dot)net> |
Cc: | Hannu Krosing <hannu(at)tm(dot)ee>, Oliver Elphick <olly(at)lfix(dot)co(dot)uk>, raja kumar thatte <trajakumar(at)yahoo(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: [HACKERS] how to alter sequence. |
Date: | 2002-12-04 17:44:50 |
Message-ID: | 20021204174450.GA17010@temp.joelburton.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers |
On Wed, Dec 04, 2002 at 09:33:52AM -0800, Dustin Sallings wrote:
> Around 20:41 on Dec 4, 2002, Hannu Krosing said:
>
> What's wrong with this:
>
> dustin=# create sequence test_seq;
> CREATE SEQUENCE
> dustin=# select nextval('test_seq');
> nextval
> ---------
> 1
> (1 row)
>
> dustin=# select setval('test_seq', 9999);
> setval
> --------
> 9999
> (1 row)
>
> dustin=# select nextval('test_seq');
> nextval
> ---------
> 10000
> (1 row)
Dustin --
The thread here is about how to raise the *max* value for the sequence,
not how to set the current value higher. The sequence in question was
created with a too-low maximum value (see help on CREATE SEQUENCE for
options); the user now wants to raise it.
- J.
--
Joel BURTON | joel(at)joelburton(dot)com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant
From | Date | Subject | |
---|---|---|---|
Next Message | Dustin Sallings | 2002-12-04 17:50:20 | Re: [HACKERS] how to alter sequence. |
Previous Message | Dustin Sallings | 2002-12-04 17:33:52 | Re: [HACKERS] how to alter sequence. |
From | Date | Subject | |
---|---|---|---|
Next Message | Dustin Sallings | 2002-12-04 17:50:20 | Re: [HACKERS] how to alter sequence. |
Previous Message | Dustin Sallings | 2002-12-04 17:33:52 | Re: [HACKERS] how to alter sequence. |