User Tools

Site Tools


tutorials:postgres

PostgreSQL

add user

create user

sudo -u postgres createuser teleschirm_development_andi

set password

ALTER USER teleschirm_development_andi WITH PASSWORD 'password';

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.txt · Last modified: 2013/12/29 15:49 by nine