pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jonesbl@WellsFargo.COM
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall / pg_dump
Date: Fri, 02 May 2003 17:13:52 -0400
Message-ID: <2602.1051910032@sss.pgh.pa.us> (raw)
In-Reply-To: <EC3A956C8957BE4C80D15D9F5A8B8005116DF5@msgsw55cacah09.wellsfargo.com>
References: <EC3A956C8957BE4C80D15D9F5A8B8005116DF5@msgsw55cacah09.wellsfargo.com>

jonesbl@WellsFargo.COM writes:
> My problem is, the dump takes more that 15 minutes and there doesn't seem to
> be any way to temporarily increase the timeout value a la:

> & psql -c "set statement_timeout = 0;" <dbname>
> & pg_dumpall ...
> & psql -c "set statement_timeout = 900000;" <dbname>

The grotty way is

	export PGOPTIONS="--statement_timeout=0"
	pg_dumpall
	unset PGOPTIONS

A possibly more convenient answer is to set statement_timeout=0 as a
per-user setting for the superuser (see ALTER USER).  Or, if you want
the limit to apply to superuser too, create a second superuser account
that you use only for pg_dump, vacuumdb, and similar long jobs.

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <2602.1051910032@sss.pgh.pa.us>
Permalink:  ../2602.1051910032@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2602.1051910032@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jonesbl@WellsFargo.COM
  Subject: Re: pg_dumpall / pg_dump
  In-Reply-To: <2602.1051910032@sss.pgh.pa.us>
  References: <EC3A956C8957BE4C80D15D9F5A8B8005116DF5@msgsw55cacah09.wellsfargo.com> <2602.1051910032@sss.pgh.pa.us>

* 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