Re: [HACKERS] functions to obtain query plan

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: "sharath kumar" <k(dot)sharat(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: [HACKERS] functions to obtain query plan
Date: 2007-04-21 12:49:16
Message-ID: F81EBB9B-67EF-48CD-B2F9-C99E208ACBA9@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


On Apr 21, 2007, at 4:46 , sharath kumar wrote:

> For a particular query, are there any functions which can give me
> the start-up cost, total run-cost, number of rows and width?

-hackers is a list for discussion of development of PostgreSQL
itself. Your question would probably be more appropriate in -general
(which I am cc'ing) or perhaps -performance.

I believe EXPLAIN ANALYZE will provide what you're looking for. The
PostgreSQL documentation is a good place to get started:

http://www.postgresql.org/docs/8.2/interactive/sql-explain.html
http://www.postgresql.org/docs/8.2/interactive/performance-tips.html

Hope this helps.

Michael Glaesemann
grzm seespotcode net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Doust 2007-04-21 16:01:19 Regular Expression Data Type
Previous Message A. Kretschmer 2007-04-21 09:48:54 Re: Modify existing index

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-04-21 15:32:46 Re: [COMMITTERS] pgsql: Add --with-libxslt configure option
Previous Message Dave Page 2007-04-21 11:14:16 [Fwd: PGBuildfarm member narwhal Branch HEAD Status changed from OK to InstallCheck failure]