By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

"alter sequence" equivilant in 7.2?

P: n/a
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
Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 23 '05 #2

P: n/a
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
Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.