template0 vs template1 in PostgreSQL
What template0 and template1 are, which one CREATE DATABASE copies, and when to choose template0 instead.
- Database
- PostgreSQL
What template0 and template1 are, which one CREATE DATABASE copies, and when to choose template0 instead.
Hand a PostgreSQL database to another role with one ALTER DATABASE statement, and check who owns it.
See how much disk space a PostgreSQL database uses with one query, for one database or for all of them.
Delete a PostgreSQL database with DROP DATABASE, safely in scripts with IF EXISTS, and with WITH (FORCE) when others are still connected.
Rename a PostgreSQL database with one ALTER DATABASE statement, and what to do when PostgreSQL refuses.
Create a PostgreSQL database in pgAdmin 4 with the Create - Database dialog: name it, check the SQL pgAdmin will run, and save.
Create the bookstore database with one SQL statement, connect to it in psql and find it in pgAdmin. Part 4 of the PostgreSQL Tutorial for beginners.