Question. In this return from postgres EXPLAIN DELETE FROM ... :
Delete (cost=0.00..19474.19 rows=266518 width=6)
Does cost 19474 mean execution time in seconds? Like in 19474s = 5.4 hours?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, the cost is measured in arbitrary units. If you use EXPLAIN ANALYZE instead of EXPLAIN postgres will actually perform the request, and then tell you the time in seconds (try it with something like
EXPLAIN ANALYZE SELECT * FROM ..... You can read more about explain and analyze here