altında yatan etken sorguyu görüntüleme Nasıl bir istemci imleci kullanarak bazı sorgu sonuçları kendine yol çalıştığını görebilirsiniz. Ama asıl sorgunun ne olduğunu nasıl görebilirim?<code>pg_stat_activity</code> yılında imleci
pipeline=> select pid, query from pg_stat_activity where state = 'active' order by query_start;
pid | query
-------+--------------------------------------------------------------------------------------
6734 | FETCH FORWARD 1000 FROM "c_109886590_1"
26731 | select pid, query from pg_stat_activity where state = 'active' order by query_start;
(2 rows)
Ben pg_cursors
var bakın ama boş:
pipeline=> select * from pg_cursors;
name | statement | is_holdable | is_binary | is_scrollable | creation_time
------+-----------+-------------+-----------+---------------+---------------
(0 rows)
sunucu AWS RDS üzerindedir.
pipeline=> select version();
version
--------------------------------------------------------------------------------------------------------------
PostgreSQL 9.3.3 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2), 64-bit
(1 row)