Info on explain output
Info on explain output
От:
Adam Witney <awitney@sghms.ac.uk>
Дата:
Hi, I am trying to optimise a complex query adding explicit joins and creating indices. I am going through the EXPLAIN output (~70 lines) but am fairly new at reading these. Are there any good rules of thumb of things one should be looking out for in EXPLAIN output? ie means that an index would be good here etc I have read through the docs for EXPLAIN, but I was wondering if there were any more detailed descriptions or docs on the subject. Thanks for any help adam -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: Info on explain output
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Have you looked at the internals PDF at the bottom of the developers lounge web page? --------------------------------------------------------------------------- Adam Witney wrote: > Hi, > > I am trying to optimise a complex query adding explicit joins and creating > indices. I am going through the EXPLAIN output (~70 lines) but am fairly new > at reading these. > > Are there any good rules of thumb of things one should be looking out for in > EXPLAIN output? ie means that an index would be good here etc > > I have read through the docs for EXPLAIN, but I was wondering if there were > any more detailed descriptions or docs on the subject. > > Thanks for any help > > adam > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Re: Info on explain output
От:
"Josh Berkus" <josh@agliodbs.com>
Дата:
Adam, > > Are there any good rules of thumb of things one should be looking > out for in > > EXPLAIN output? ie means that an index would be good here > etc Also try: 1) Various articles on Techdocs.postgresql.org 2) Ewald G.'s PostgreSQL Book Explain output is not that easily converted into a plan of action ... otherwise, Postgres would have automated it, neh? You have to get a feel for what looks good and bad dynamically. -Josh Berkus