pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Ng <surfnet@yahoo.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Getting
Date: Wed, 23 Jan 2013 10:20:07 -0800 (PST)
Message-ID: <1358965207.49445.YahooMailNeo@web120905.mail.ne1.yahoo.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

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

view thread (5+ messages)  latest in thread

Message-ID: <1358965207.49445.YahooMailNeo@web120905.mail.ne1.yahoo.com>
Permalink:  ../1358965207.49445.YahooMailNeo@web120905.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1358965207.49445.YahooMailNeo@web120905.mail.ne1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: surfnet@yahoo.com
  Subject: Re: Getting
  In-Reply-To: <1358965207.49445.YahooMailNeo@web120905.mail.ne1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox