title: How can I get a tablename of a PostgreSQL cursor?
body: <p>I know that in Oracle we can do something like <code>select * from TABLE(DBMS_XPLAN.DISPLAY_CURSOR('$$SQL_ID'))</code>. But there is no sql id field in <code>pg_cursors</code> catalog. We have only declaration text. And in general it's not Oracle. So, are there any ways to get a table name of an opened cursor in postgreSQL, besides parsing a sql statement(pg_cursors.statement)?</p>