Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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: http://explain.depesz.com/


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-08-30 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (348 votes), past polls