PostgreSQL DDL Operations: Difference between revisions
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
==List Tablespaces== | ==List Tablespaces== | ||
psql | |||
\db | \db |
Revision as of 03:01, 26 November 2017
Internal
Database
List Databases
psql -l
or
SELECT datname FROM pg_database;
Create a Database
createdb <dbname>
or
CREATE DATABASE
Drop a Database
DROP DATABASE
Tablespace
List Tablespaces
psql \db