psql create table tbl1 (id serial,tim timestamp,memo text); grant all on tbl1 to username; grant all on tbl1_id_seq to username; \q