pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@postgresql.org
Subject: Re: idle in transaction, why
Date: Tue, 7 Nov 2017 08:16:29 +0100
Message-ID: <otrmk6$63m$1@blaine.gmane.org> (raw)
In-Reply-To: <5d130fce-3f5c-fb0a-4bf0-3163c14fc49a@gmail.com>
References: <4a365db4-8608-65c8-e3dc-23524f881bc3@gmail.com>
	<CAKFQuwaOZPo6ArqXrJ=E1jVYxV-F9=YuY8uypyY+OymuZAKKsA@mail.gmail.com>
	<16893.1509999467@sss.pgh.pa.us>
	<6ed9ca9b-fb80-e505-2522-be9b5f63a759@gmail.com>
	<19493.1510000892@sss.pgh.pa.us>
	<81aa980b-fb4c-e9b4-fa82-9f14df71a2df@gmail.com>
	<CAHyXU0wbTn2pE0Mf1wtMd90xpYXRMYgwiba7Bf-fkOy+uVkVfg@mail.gmail.com>
	<5d130fce-3f5c-fb0a-4bf0-3163c14fc49a@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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




-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (16+ messages)  latest in thread

Message-ID: <otrmk6$63m$1@blaine.gmane.org>
Permalink:  ../otrmk6$63m$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/otrmk6$63m$1@blaine.gmane.org

 · 

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: spam_eater@gmx.net
  Subject: Re: idle in transaction, why
  In-Reply-To: <otrmk6$63m$1@blaine.gmane.org>
  References: <4a365db4-8608-65c8-e3dc-23524f881bc3@gmail.com> <CAKFQuwaOZPo6ArqXrJ=E1jVYxV-F9=YuY8uypyY+OymuZAKKsA@mail.gmail.com> <16893.1509999467@sss.pgh.pa.us> <6ed9ca9b-fb80-e505-2522-be9b5f63a759@gmail.com> <19493.1510000892@sss.pgh.pa.us> <81aa980b-fb4c-e9b4-fa82-9f14df71a2df@gmail.com> <CAHyXU0wbTn2pE0Mf1wtMd90xpYXRMYgwiba7Bf-fkOy+uVkVfg@mail.gmail.com> <5d130fce-3f5c-fb0a-4bf0-3163c14fc49a@gmail.com> <otrmk6$63m$1@blaine.gmane.org>

* 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