Posgresql Log: lots of parse statements - Mailing list pgsql-general

From Vikas Sharma
Subject Posgresql Log: lots of parse statements
Date
Msg-id CAN6gwKx7cjSa4aviWp0Eh7zTJqrGXEbnkZTj0gdQC2caTB69PQ@mail.gmail.com
Whole thread Raw
Responses Re: Posgresql Log: lots of parse statements  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
Hi All,

I need help to understand this please. I was looking to do performance tuning on slow queries so have stated logging queries taking more than 15 secs. In the postgresql log  I can see a query which appears only as "parse" while others appear as execute.

2018-01-21 14:01:16 GMT LOG:  duration: 62952.558 ms  parse <unnamed>: select this_.busi_type as business_type from tablea where this_.busi_id = $1 and this_.busi_date = $2
2018-01-21 14:05:00 GMT LOG:  duration: 62952.558 ms  parse <unnamed>: select this_.busi_type as business_type from tablea where this_.busi_id = $1 and this_.busi_date = $2
2018-01-21 14:17:12 GMT LOG:  duration: 62952.558 ms  parse <unnamed>: select this_.busi_type as business_type from tablea where this_.busi_id = $1 and this_.busi_date = $2
2018-01-21 14:34:08 GMT LOG:  duration: 62952.558 ms  parse <unnamed>: select this_.busi_type as business_type from tablea where this_.busi_id = $1 and this_.busi_date = $2

I don't see this query to appear as execute, so how can find out how much time it's taking to execute? does this parse timing includes execute also?

Best Regards
Vikas


pgsql-general by date:

Previous
From: Melvin Davidson
Date:
Subject: Re: Version upgrade: is restoring the postgres database needed?
Next
From: "David G. Johnston"
Date:
Subject: Re: Posgresql Log: lots of parse statements