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.

Revisions

  1. goravbhootra created this gist Dec 2, 2019.
    1 change: 1 addition & 0 deletions reset_pg_sequence.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    postgres# Select setval('zones_id_seq', (SELECT max(id) from zones));