Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id F3D53475D60 for ; Fri, 10 May 2002 05:44:46 -0400 (EDT) Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 8AD9D475D70 for ; Fri, 10 May 2002 05:44:41 -0400 (EDT) Received: (qmail 10451 invoked from network); 10 May 2002 09:37:22 -0000 Received: from system29.trade-india-local.com (HELO server) (192.168.0.29) by ptil-236-129-del.primus-india.net with SMTP; 10 May 2002 09:37:22 -0000 Content-Type: text/plain; charset="us-ascii" From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: pgsql-sql@postgresql.org Subject: Getting full query string from pg_stat_get_backend_activity Date: Fri, 10 May 2002 15:13:59 +0530 X-Mailer: KMail [version 1.4] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200205101513.59553.mallah@trade-india.com> X-Archive-Number: 200205/85 X-Sequence-Number: 7721 Hi ,=20 Is it possible to get the full SQL query from=20 pg_stat_get_backend_activity, currently it is truncated after certain number of characters , example below. SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,=20 pg_stat_get_backend_activity(s.backendid) AS current_query FROM (SELECT=20 pg_stat_get_backend_idset() AS backendid) s; procpid | current_query 27015 | in transaction 26978 | in transaction 26985 | in transaction 27135 | select count(*) from ( select distinct on (email_id)=20 email_id,email,contact from email_bank a join (select email_id from=20 email_export_category where category_id in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10,= =20 12, 14, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 1 12262 | SELECT source_id , cnt from (SELECT source_id,count(source_id) = as=20 cnt from email_source group by source_id ) subsel join sources=20 using(source_id) order by source_id 27136 | in transaction (16 rows) --=20 Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.