Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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: (7)
As of 2015-12-02 07:54 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (37 votes), past polls