Is there a catalog table or function to get the text of the queryassociated with a cursor? If I query pg_stat_activity all I see is'fetch forward 1000 from XYZ'.
-K