Module13_Data_Dictionaries Flashcards

1
Q

where are the data dictonary objects stored

A

pg_catalog or \dS

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

what is stored in pg_file_settings

A

contents op postgresql.conf

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

what is stored in pg_policy

A

stores row level security for tables

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

what is stored in pg_policies

A

Provides acces to usefull info about each row-level secuirty in DB

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

pg_*_size
pg_column_size
pg_size_pretty
pg_ls_dir,pg_read_file
pg_blocking_pids()

A

pg_*_size: diskspace used by DB,schema,tablespace

pg_column_size: bytes used to store value

pg_size_pretty: convert raw size to hum an readable

pg_ls_dir,pg_read_file: file operation function restricted to superuser.

pg_blocking_pids(): function to find blocking sessions

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

pg_stat_activiry
pg_locks
pg_stat_database
pg_stat_user_*
pg_stat_archiver
pg_stat_progress_basebackup
pg_stat_progress_vacuum
pg_stat_progress_analyze
pg_hba_file_rules

A

details of open connections and transactions
list of current locks being held
details of databases
details of tables, indexes and functions
status of archiver process
view pg_basebackup progress
show progress report for vacuum ops
show progress report for analyze ops
provides summary of pg_hba.conf

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

how to get output better readable in psql

A

\x

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

how to force log switch

A

select pg_switch_wal();

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

how to kill session

A

pg_terminate_backend()

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