pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump vs. idle_in_transaction_session_timeout
2+ messages / 2 participants
[nested] [flat]

* pg_dump vs. idle_in_transaction_session_timeout
@ 2016-06-15 09:27  Bernd Helmle <mailings@oopsware.de>
  0 siblings, 1 reply; 2+ messages in thread

From: Bernd Helmle @ 2016-06-15 09:27 UTC (permalink / raw)
  To: pgsql-hackers

Currently pg_dump doesn't turn off idle_in_transaction_session_timeout.

Okay, the window of failure here is very narrow (on my machine it breaks
with an insane setting of 1ms only), but for the sake of reliable backups
and protection against over motivated DBA it looks better to me to turn
that off, no?

--
 
Thanks

	Bernd


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_dump vs. idle_in_transaction_session_timeout
@ 2016-06-15 13:40  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Bernd Helmle <mailings@oopsware.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-06-15 13:40 UTC (permalink / raw)
  To: Bernd Helmle <mailings@oopsware.de>; +Cc: pgsql-hackers

Bernd Helmle <mailings@oopsware.de> writes:
> Currently pg_dump doesn't turn off idle_in_transaction_session_timeout.

Definitely an oversight, since it turns off other timeout settings.

> Okay, the window of failure here is very narrow (on my machine it breaks
> with an insane setting of 1ms only),

Probably if you were using parallel dump or restore, it could be a lot
more fragile, since an individual worker session might have nothing to
do for some period of time.

Will fix if no one beats me to it.

			regards, tom lane


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-06-15 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15 09:27 pg_dump vs. idle_in_transaction_session_timeout Bernd Helmle <mailings@oopsware.de>
2016-06-15 13:40 ` Tom Lane <tgl@sss.pgh.pa.us>

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