Re: What happens at BIND time?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What happens at BIND time?
Date: 2013-08-23 22:15:35
Message-ID: 23984.1377296135@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> So I'm looking for a cause for this. One thing would help is a clearer
> understanding of what happens at BIND time for 3-phase queries.

Planning.

> Note that, in this workload, the user is re-parsing the queries
> over-and-over rather than using prepared plans properly.

Does the backend's memory usage climb, or hold steady? If the former,
I'd bet on client failure to release resources, eg not closing the
portals when done with them. A memory map from MemoryContextStats
would help determine exactly what's leaking.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2013-08-24 02:41:41 Re: Hardware donation
Previous Message Josh Berkus 2013-08-23 22:08:45 What happens at BIND time?