Re: Getting

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: Dan Ng <surfnet(at)yahoo(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Getting
Date: 2013-01-24 05:52:28
Message-ID: CA+h6Ahg6eDD=eVb5CrfeGCAevkRUSqcqWoC+7H_z8FO_RO=dCg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Jan 23, 2013 at 11:50 PM, Dan Ng <surfnet(at)yahoo(dot)com> wrote:

> Hello,
> I am a newb in Postgres coming from Oracle. Does anyone know if it's
> possible to see the plan being executed by Postgres for an active sql
> statement (from pg_stat_activity). This is to be able to troubleshoot poor
> performing ones and in Oracle we are able to retrieve such a plan.
> Additionally, how do I see the actual sql statement that shows as
> "<unnamed portal x>".
> Thanks so much for any advice you all may have.
> -Dan
>

Welcome...!!!

You need to use additional module to write query plan in logs i.e.,
AUTO_EXPLAIN.

http://www.postgresql.org/docs/9.2/static/auto-explain.html

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

In response to

  • Getting at 2013-01-23 18:20:07 from Dan Ng

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Holt 2013-01-24 05:55:21 Re: Getting
Previous Message Dan Ng 2013-01-23 18:20:07 Getting