pg_postmaster_start_time (1) 썸네일형 리스트형 postgresql/greenplum uptime을 to_char 함수로 보기편하게 변경하기 현재 서비스중인 postgresql/greenplum 을 현재 구동되었는지 확인할때 사용하는 개념이 uptime 이고 함수는 pg_postmaster_start_time() 를 이용하면 쉽게 확인할 수 있다. -- postgresql/greenplum start_time select pg_postmaster_start_time() -- postgresql/greenplum uptime select current_timestamp - pg_postmaster_start_time() as uptime 하지만 분초단위의 데이터가 표시되어 보기가 불편하다. to_char 함수를 이용하여 보기편하게 변경해보자. -- postgresql/greenplum uptime - to_char 를 이용 select to_c.. 이전 1 다음