Re: "alter sequence" equivilant in 7.2?

From: Shea Martin <shea(at)snowsquirrel(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: "alter sequence" equivilant in 7.2?
Date: 2004-06-14 03:47:03
Message-ID: Xc9zc.754252$Ig.282651@pd7tw2no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Shea Martin wrote:
> I am moving my database from a machine running 7.4 to a machine running
> 7.2. My sequences are not out of wack, is there a way to set the
> current value of a sequence? I though ALTER SEQUENCE would work but it
> does not exist in version 7.2.
>
> Thanks,
>
> ~S

I honestly did to google before posting the above. But couldn't find anything.
But I just found this, which did exactly what I wanted:

SOLUTION:

select setvalue('post_id_seq', 234134);

~S

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Najib Abi Fadel 2004-06-14 08:08:04 HTML output
Previous Message Shea Martin 2004-06-14 03:39:44 "alter sequence" equivilant in 7.2?