Skip to content

Instantly share code, notes, and snippets.

@goravbhootra
Created December 2, 2019 05:26
Show Gist options
  • Select an option

  • Save goravbhootra/978a8564a9085f78ba18e7935f1de5cf to your computer and use it in GitHub Desktop.

Select an option

Save goravbhootra/978a8564a9085f78ba18e7935f1de5cf to your computer and use it in GitHub Desktop.
Reset sequence of pg table

postgres# Select setval('zones_id_seq', (SELECT max(id) from zones));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment