Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: statement t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 9300 of 9928
Post > Topic >>

Re: statement timeout vs dump/restore

by xzilla@[EMAIL PROTECTED] (Robert Treat) May 6, 2008 at 04:51 PM

On Monday 05 May 2008 09:01:25 Andrew Dunstan wrote:
> Zeugswetter Andreas OSB sIT wrote:
> >>> Do we want the following:
> >>>
> >>> 1. pg_dump issues "set statement_timeout = 0;" to the
> >>
> >> database prior to
> >>
> >>> taking its copy of data (yes/no/default-but-switchable)
> >>> 2. pg_dump/pg_restore issue "set statement_timeout = 0;" in
> >>
> >> text mode
> >>
> >>> output (yes/no/default-but-switchable)
> >>> 3. pg_restore issues "set statement_timeout = 0;" to the
> >>
> >> database in
> >>
> >>> restore mode (yes/no/default-but-switchable)
> >>
> >> I think "yes" for all three.  There was some handwaving about someone
> >> maybe not wanting it, but an utter lack of convincing use-cases; so
> >> I see no point in going to the effort of providing a switch.
> >>

ISTR being unconvinced by the pg_restore arguments, but as I think about
it 
some more, for someone to set statement_timeout on a production system,
and 
then have that be blindly overridden by any random pg_dump user seems a
bit 
unfair.  pg_dump is not only used as a backup tool, it is also used as a 
general user tool (for example, pgadmin calls pg_dump if you want to see a

tables schema). imho pg_dump should not set it by default, but have an
option 
to set it, specifically for the backup scenario. 

-- 
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL

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




 8 Posts in Topic:
statement timeout vs dump/restore
andrew@[EMAIL PROTECTED]   2008-05-03 09:50:30 
Re: statement timeout vs dump/restore
tgl@[EMAIL PROTECTED] (T  2008-05-03 13:01:36 
Re: statement timeout vs dump/restore
jd@[EMAIL PROTECTED] (&q  2008-05-03 10:31:01 
Re: statement timeout vs dump/restore
Andreas.Zeugswetter@[EMAI  2008-05-05 12:38:54 
Re: statement timeout vs dump/restore
andrew@[EMAIL PROTECTED]   2008-05-05 09:01:25 
Re: statement timeout vs dump/restore
xzilla@[EMAIL PROTECTED]   2008-05-06 16:51:13 
Re: statement timeout vs dump/restore
tgl@[EMAIL PROTECTED] (T  2008-05-06 17:33:13 
Re: statement timeout vs dump/restore
andrew@[EMAIL PROTECTED]   2008-05-06 17:56:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 8:13:47 CDT 2008.