Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Sat, 21 Apr 2007 07:49:16 -0500
  • Message-id: <F81EBB9B-67EF-48CD-B2F9-C99E208ACBA9(at)seespotcode(dot)net>


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





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group