ruediger.papke@xxxxxxxxxxx writes: > when is WAITING in PG_STATS_ACTIVITYset to TRUE ? > When this connection is waiting on a lock , or are there any other > reasons, waiting on another resource ? Only when waiting on a lock. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match