Module4_Database_Clusters Flashcards

1
Q

what are the 3 default databases?

A

Template0
Template1
postgres

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

pg_ctl -D PGDATA_DIR -l startlog start

A

start a cluser + logfile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to reload (not restart) a cluster?

A

pg_ctl -D data_directory reload
or
pg_reload_conf()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does the pg_controldata /data_dir ?

A

gives infomation about the cluster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to remove an instance.

A

stop the cluster and delete the data directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly