Is there a catalog table or function to get the text of the query associated with a cursor? If I query pg_stat_activity all I see is 'fetch forward 1000 from XYZ'. -K -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general