Thursday, October 19, 2023

How to know Postgresql server uptime ?

 

Login as privileged user to database 


Query :


SELECT pg_postmaster_start_time();



output :


demo1=> SELECT pg_postmaster_start_time();

   pg_postmaster_start_time

-------------------------------

 2023-10-19 08:46:45.432054+00

(1 row)



demo1=>

No comments:

Post a Comment

Interview Question 20 : What are kernel parameters and why to set them ?

What are Kernel Parameters? Kernel parameters are tunable settings of the operating system kernel (the core part of Linux/UNIX that manage...