CREATE USER
CREATE USER
CREATE DATABASE
CREATE DATABASE
or
createdb
createdb
ALTER DATABASE
ALTER TABLE
DELETE FROM
TRUNCATE
Note: TRUNCATE
quickly removes all rows from a set of tables. It has the same effect as an unqualified DELETE
on each table, but since it does not actually scan the tables it is faster. Furthermore, it reclaims disk space immediately, rather than requiring a subsequent VACUUM operation. This is most useful on large tables.
pg_dump --verbose --format custom --file=filename.pgdump --dbname=$db_name$
pg_restore --dbname
pg_restore --schema-only --dbname