From: Daniel Seichter <daniel@dseichter.de>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall / pg_dump
Date: Fri, 02 May 2003 21:23:28 +0200
Message-ID: <3EB2E1D0.13523.B0F8D5@localhost> (raw)
In-Reply-To: <EC3A956C8957BE4C80D15D9F5A8B8005116DF5@msgsw55cacah09.wellsfargo.com>
Hello,
what do you think about to dump each table with the option t and add the output of the
dump to one file?
Daniel
> Postgres ver. 7.3.1, on HPUX.
>
> I'm having a problem dumping my database using pg_dumpall. The
> statement_timeout value is set to 15 minutes, and I don't want to set
> it higher (protecting the db against long and/or ill formed queries).
>
> 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>
>
> I did hack the vacuumdb script to alter the timeout value so VACUUM
> would complete (takes 1 hour 30 minutes).
>
> Is there any way to hack pg_dump and pg_dumpall to temporarily
> increase statement_timeout limits so backups can complete? Or, better
> yet, is there an undocumented command to alter the statement_timeout
> value during the dump?
>
>
> Bill Jones
> Systems Architect
> Middleware Services
> Wells Fargo Services Company
> Office --415.243.1364
> PCS -- 415.254.3831 (4152543831@mobile.att.net)
>
> Views expressed are mine. Only in unusual circumstances are they
> shared by my employer.
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 6: Have you searched our
> list archives?
>
> http://archives.postgresql.org
--
Eigene Software und Projekte, KI, Links und Sonstiges!
Schauen Sie einfach mal vorbei, unter http://www.dseichter.de
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: daniel@dseichter.de
Subject: Re: pg_dumpall / pg_dump
In-Reply-To: <3EB2E1D0.13523.B0F8D5@localhost>
References: <EC3A956C8957BE4C80D15D9F5A8B8005116DF5@msgsw55cacah09.wellsfargo.com> <3EB2E1D0.13523.B0F8D5@localhost>
* 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