RAGE UDAY KIRAN

View on GitHub

Main Menu

Database backup command

pg_dump databaseName > databaseName.sql

Database restore command

Storing database in a different place using table space

create tablespace tableSpaceName location 'folder';
#create tablespace bigData location '/data/alt/postgres';

create database databaseName with tablespace = tableSpaceName;
#create database rainfall with tablespace = bigData;