From: | "Dan Langille" <dan(at)langille(dot)org> |
---|---|
To: | Matthew Price <pricem(at)juno(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Changing sequence cache |
Date: | 2002-03-04 18:32:01 |
Message-ID: | 200203041832.g24IW2k78903@lists.unixathome.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 4 Mar 2002 at 18:02, Matthew Price wrote:
> I already have a sequence named customers_custid_seq
>
> I would like to increase the cache setting some. How can i alter the cache
> after the sequence has already been created?
>
> Trying:
> update customer_custid_seq set cache=5;
> Gives this:
> ERROR: You can't change sequence relation customer_custid_seq
test=# create sequence mprice;
CREATE
test=# select nextval('mprice');
nextval
---------
1
(1 row)
test=# select setval('mprice', 23);
setval
--------
23
(1 row)
test=# select nextval('mprice');
nextval
---------
24
(1 row)
test=#
--
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples
From | Date | Subject | |
---|---|---|---|
Next Message | Ismail Bouabdallah | 2002-03-04 18:32:33 | PL/pgsql |
Previous Message | Matthew Price | 2002-03-04 18:02:37 | Changing sequence cache |