Re: Finding values of bind variables

From: "Vasudevan, Ramya" <ramya(dot)vasudevan(at)classmates(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Finding values of bind variables
Date: 2015-04-08 21:43:38
Message-ID: 20EE50F73664E744AF948F0106FE6DFA58EF5B88@SEAMBX01.sea.corp.int.untd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank You John.

> the state_change to idle-in-transaction took place about 0.0001 seconds later (so the insert took all of a millisecond).
Yes, the DML “finished” but stayed uncommitted.

> What date/time was it when you did that select from pg_stat_activity ? thats how long this transaction has been pending, which if its more than a few seconds to at most a minute, is almost certainly a 'very bad thing' unless the transaction is actively crunching data.
2015-04-07 14:25 – ~17 hours after the DML ran.
Agreed, it was bad. There was nothing happening with this transaction since 2015-04-06 21:16:26. It was just sitting there.

> if you're using a client such as JDBC which autowraps queries in transactions by default, you need to invoke COMMIT's when you're done doing that unit of work.
This is what I am trying to confirm from the application side. It will help the dev team if they have the value for bind variables apparently.

Any idea on how to get the values for bind variables for a transaction like this?

Thank You

Ramya

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Uckun 2015-04-08 21:58:21 Re: Benchmarking partitioning triggers and rules
Previous Message Keith Fiske 2015-04-08 21:35:35 Background worker assistance & review