GP - Database Configuration History

To list out down segment(s) from configuration history table

SELECT 
 h.time AS "Time",
 h.dbid||':'||content||':'||hostname||':'||port||':'||preferred_role  AS "dbid:content:hostname:port:role",
 "desc" AS "Description"
FROM gp_configuration_history h, gp_segment_configuration c
WHERE "desc" LIKE '%DOWN%' 
AND c.dbid=h.dbid
ORDER BY time DESC 
LIMIT 10;

Comments

Popular posts from this blog

GP - Kerberos errors and resolutions

How to set Optimizer at database level in greenplum

GP - SQL Joins