Skip to content

Instantly share code, notes, and snippets.

@prestontimmons
Created April 16, 2010 17:13
Show Gist options
  • Save prestontimmons/368687 to your computer and use it in GitHub Desktop.
Save prestontimmons/368687 to your computer and use it in GitHub Desktop.
# Correct sequence value in Postgres
select setval('videos_video_id_seq', (select max(id) + 1 from videos_video));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment