Module4_Database_Clusters Flashcards
1
Q
what are the 3 default databases?
A
Template0
Template1
postgres
2
Q
pg_ctl -D PGDATA_DIR -l startlog start
A
start a cluser + logfile
3
Q
how to reload (not restart) a cluster?
A
pg_ctl -D data_directory reload
or
pg_reload_conf()
4
Q
what happens when you stop cluster with the options -mf, mi and ms
A
- mf : Fast mode quit directly with proper shutdown (default)
- mi : Immediate mode, quit without complete shutdown, will need recovery
- ms : smart mode , quit after all clients have disconnected
5
Q
what does the pg_controldata /data_dir ?
A
gives infomation about the cluster
6
Q
How to remove an instance.
A
stop the cluster and delete the data directory