User Tools

Site Tools


tutorials:postgres

This is an old revision of the document!


PostgreSQL

reset autoincrement index

teleschirm_development=> select pg_get_serial_sequence('locations', 'id');
 pg_get_serial_sequence  
-------------------------
 public.locations_id_seq
(1 row)
teleschirm_development=> ALTER SEQUENCE locations_id_seq RESTART WITH 2000;
ALTER SEQUENCE
tutorials/postgres.1388319493.txt.gz · Last modified: 2013/12/29 12:18 by nine