Re: postgresql.conf archive_command example
От
Kevin Grittner
Тема
Re: postgresql.conf archive_command example
Дата
Msg-id
4E60A32A0200002500040B1C@gw.wicourts.gov
Ответ на
Re: postgresql.conf archive_command example (Dimitri Fontaine)
Список
Дерево обсуждения
postgresql.conf archive_command example Peter Eisentraut <peter_e@gmx.net>
Re: postgresql.conf archive_command example Brendan Jurd <direvus@gmail.com>
Re: postgresql.conf archive_command example Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: postgresql.conf archive_command example Peter Eisentraut <peter_e@gmx.net>
Re: postgresql.conf archive_command example Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: postgresql.conf archive_command example Robert Haas <robertmhaas@gmail.com>
Re: postgresql.conf archive_command example Josh Berkus <josh@agliodbs.com>
Re: postgresql.conf archive_command example Robert Haas <robertmhaas@gmail.com>
Re: postgresql.conf archive_command example Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Robert Haas <robertmhaas@gmail.com>
Re: postgresql.conf archive_command example Tom Lane <tgl@sss.pgh.pa.us>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Robert Haas <robertmhaas@gmail.com>
Re: postgresql.conf archive_command example Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Fujii Masao <masao.fujii@gmail.com>
Re: postgresql.conf archive_command example Robert Treat <rob@xzilla.net>
Re: postgresql.conf archive_command example Fujii Masao <masao.fujii@gmail.com>
Re: postgresql.conf archive_command example Simon Riggs <simon@2ndQuadrant.com>
Re: postgresql.conf archive_command example Fujii Masao <masao.fujii@gmail.com>
Re: postgresql.conf archive_command example Aidan Van Dyk <aidan@highrise.ca>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Florian Pflug <fgp@phlo.org>
Re: postgresql.conf archive_command example Martijn van Oosterhout <kleptog@svana.org>
Re: postgresql.conf archive_command example Andres Freund <andres@anarazel.de>
Re: postgresql.conf archive_command example Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Andrew Dunstan <andrew@dunslane.net>
Re: postgresql.conf archive_command example "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: postgresql.conf archive_command example Magnus Hagander <magnus@hagander.net>
Re: postgresql.conf archive_command example Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: postgresql.conf archive_command example Cédric Villemain <cedric.villemain.debian@gmail.com>
Dimitri Fontaine wrote: > Robert Haas writes: >>> I'm also wondering if providing some shell script examples of a >>> fault-tolerant script to handle archiving would be useful. >> >> I think it would. > > My usual advice is to avoid having to write one if possible, > because it's more complex than it looks. What about recommending > existing solutions, such as walmgr from Skytools? > > Even better, what about including a default archiving tool, that > could be either another script in bin/ or rather an internal > command. The default would accept a location as argument, for > simple needs you mount a remote filesystem and there you go. If > you need something more complex, you still can provide it > yourself. In a green field I might argue for having an archvie_directory GUC instead of archive_command. As it stands, it might be a really good idea to provide a pg_archiveto executable which takes as arguments a directory path and the arguments passed to the archive script. With a little extra effort, the executable could check for some file which would specify what host and path should be writing archives there, to avoid problems with copied database directories accidentally writing to the same location as the source. Such an executable seems like minimal effort compared to the problems it would solve. If there's an existing tool with appropriate licensing which is sufficiently portable and reliable, all the better -- let's ship it and use that for our example archive_command. -Kevin
В списке pgsql-hackers по дате отправления