Thread: EXPLAIN

EXPLAIN

From
Andy
Date:
 When I do an explain what does the cost, size and width mean that is returned?

 Seq Scan on apts  (cost=249.95 size=2362 width=468)

 Thanks

 Andy


Re: [GENERAL] EXPLAIN

From
Bruce Momjian
Date:
>  When I do an explain what does the cost, size and width mean that is returned?
>
>  Seq Scan on apts  (cost=249.95 size=2362 width=468)

Cost is a computed value by the optimizer of how long it will execute.
It is meaningful only in comparison to there queries.  size if the
number of rows estimated to return.  width is the number of bytes per
row returned.


--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026