X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 814DF4763C2 for ; Fri, 2 May 2003 17:13:51 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id ACE9947638D for ; Fri, 2 May 2003 17:13:50 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h42LDqU6002603; Fri, 2 May 2003 17:13:52 -0400 (EDT) To: jonesbl@WellsFargo.COM Cc: pgsql-admin@postgresql.org Subject: Re: pg_dumpall / pg_dump In-reply-to: References: Comments: In-reply-to jonesbl@WellsFargo.COM message dated "Fri, 02 May 2003 11:31:24 -0700" Date: Fri, 02 May 2003 17:13:52 -0400 Message-ID: <2602.1051910032@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/32 X-Sequence-Number: 8594 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;" > & pg_dumpall ... > & psql -c "set statement_timeout = 900000;" 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