Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: DBD::Pg returns select plan on execute

by erix (Vicar)
on Aug 17, 2012 at 15:42 UTC ( #988003=note: print w/replies, xml ) Need Help??

in reply to DIB:Pg returns select plan on execute

Postgres will return the plan when you prefix the actual SQL statement with 'EXPLAIN' or 'EXPLAIN ANALYZE'.

EXPLAIN will get the plan without executing it, EXPLAIN ANALYZE will also execute it, then returns the plan and some detail of the result (like the number of rows); both output a table-like structure with 1 column: 'QUERY PLAN'.

(Here is an plan-analyze site that is sometimes handy:

  • Comment on Re: DBD::Pg returns select plan on execute

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988003]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2016-10-25 10:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (317 votes). Check out past polls.