pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vikas Sharma <shavikas@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Posgresql Log: lots of parse statements
Date: Thu, 01 Mar 2018 12:26:43 -0500
Message-ID: <18983.1519925203@sss.pgh.pa.us> (raw)
In-Reply-To: <CAN6gwKxgCOmM+7iJRQWh42GbC8e4jbjHQSGV2n6f9Zc+BJ6jMA@mail.gmail.com>
References: <CAN6gwKx7cjSa4aviWp0Eh7zTJqrGXEbnkZTj0gdQC2caTB69PQ@mail.gmail.com>
	<CAKFQuwY_LD2ZX1eRXKU5ckCK7CtnDD+JC4v746arMWstpQcLAg@mail.gmail.com>
	<CAN6gwKxgCOmM+7iJRQWh42GbC8e4jbjHQSGV2n6f9Zc+BJ6jMA@mail.gmail.com>

Vikas Sharma <shavikas@gmail.com> writes:
> But why are there so many parse statement occurances for one query?

A "parse" log entry is recorded when the client sends a Parse protocol
message.  So the answer to that question needs to be sought in your
client application's logic.

> In the log I can see these parse statement occurances about 400 times in a
> day and everytime taking longer than 15 secs.

That seems like a mighty long time for parse analysis.  Maybe you're
having difficulties with something taking exclusive locks, thereby
blocking other queries?

			regards, tom lane




view thread (5+ messages)  latest in thread

Message-ID: <18983.1519925203@sss.pgh.pa.us>
Permalink:  ../18983.1519925203@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18983.1519925203@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, shavikas@gmail.com, david.g.johnston@gmail.com
  Subject: Re: Posgresql Log: lots of parse statements
  In-Reply-To: <18983.1519925203@sss.pgh.pa.us>
  References: <CAN6gwKx7cjSa4aviWp0Eh7zTJqrGXEbnkZTj0gdQC2caTB69PQ@mail.gmail.com> <CAKFQuwY_LD2ZX1eRXKU5ckCK7CtnDD+JC4v746arMWstpQcLAg@mail.gmail.com> <CAN6gwKxgCOmM+7iJRQWh42GbC8e4jbjHQSGV2n6f9Zc+BJ6jMA@mail.gmail.com> <18983.1519925203@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox