Re: idle in transaction, why

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: idle in transaction, why
Date: 2017-11-07 07:16:29
Message-ID: otrmk6$63m$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rob Sargent schrieb am 06.11.2017 um 23:09:
> Gosh I wish I could learn to proof-read my posts.
> My support crew graciously set
>
> idle_transaction_timeout = 1
>
> Now to ponder if I need zero or some large number.

The unit of that setting is milliseconds (if no unit is specified).
zero disables that feature.

One millisecond seems like an awfully short period to allow a transaction to be idle.

I would figure values in "minutes" to be more realistic depending on the workload and characteristics of the application.

A transaction that has several seconds of "think time" between individual statements doesn't seem that unrealistic.

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hmidi slim 2017-11-07 07:27:16 Re: Combine multiple text search configuration
Previous Message John R Pierce 2017-11-07 07:06:51 Re: Incremental refresh - Materialized view