How to stop postgreSQL?
./pg_ctl -D ../data stop
How to force stop postgreSQL?
./pg_ctl -D ../data stop -m f --->force stop
How to start postgreSQL?
./pg_ctl -D ../data start
How to restart postgreSQL?
./pg_ctl -D ../data restart
Note: In above samples pg_ctl is a executable which can be found under bin directory. -D stands for directory and ../data is data directory.
Security :
pg_hdb.cfg configuration file will have all clients IP address non listed clients cannot access.
pg_hba.conf can be find under data directory not under bin directory.another config file postgres.cfg where will do postgreSQL configurations.
How to load configuration file without restart with query?
Answer: select pg_reload_conf();
How to rotate db logs?
Answer: select pg_rotate_logfile();
How to view log file location?
Answer: select pg_ls_dir('pg_log');
How to view system tables?
Answer: \d$
also see below
./pg_ctl -D ../data stop
How to force stop postgreSQL?
./pg_ctl -D ../data stop -m f --->force stop
How to start postgreSQL?
./pg_ctl -D ../data start
How to restart postgreSQL?
./pg_ctl -D ../data restart
Note: In above samples pg_ctl is a executable which can be found under bin directory. -D stands for directory and ../data is data directory.
Security :
pg_hdb.cfg configuration file will have all clients IP address non listed clients cannot access.
pg_hba.conf can be find under data directory not under bin directory.another config file postgres.cfg where will do postgreSQL configurations.How to force stop postgreSQL?
./pg_ctl -D ../data stop -m f --->force stop
How to start postgreSQL?
./pg_ctl -D ../data start
How to restart postgreSQL?
./pg_ctl -D ../data restart
Note: In above samples pg_ctl is a executable which can be found under bin directory. -D stands for directory and ../data is data directory.
Security :
pg_hdb.cfg configuration file will have all clients IP address non listed clients cannot access.
How to load configuration file without restart with query?
Answer: select pg_reload_conf();
How to rotate db logs?
Answer: select pg_rotate_logfile();
How to view log file location?
Answer: select pg_ls_dir('pg_log');
How to view system tables?
Answer: \d$
also see below
I really love to read such a nice article. DevOps Training in Bangalore | Certification | Online Training Course institute | DevOps Training in Hyderabad | Certification | Online Training Course institute | DevOps Training in Coimbatore | Certification | Online Training Course institute | DevOps Online Training | Certification | Devops Training Online
ReplyDeleteThanks for sharing this great information with us.its very useful to us.i really happy to read this blog.its an wonderful and nice article
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
hadoop training in chennai
hadoop training in bangalore