Re: postgresql.conf archive_command example

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: postgresql.conf archive_command example
Дата
Msg-id m21uvy4rxz.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на postgresql.conf archive_command example  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: postgresql.conf archive_command example
Список pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> (1)  We're talking about a new /bin executable to do this which
> could be referenced in an archive_command string or run from a
> script called by archive_command, right?

That, or an internal implementation.  That would be a function in the
backend that would be called when archive_command is set to some
specific value, like for example test and cd are command lines referring
not to some executable on the PATH but to some internal code in bash.

But I know some people here will frown upon that idea.

> (2)  It should copy, not move, with protection against overwriting
> an existing file.

See, we need to provide a good production grade facility.  I've never
tried to do it myself, I'm just using walmgr to manage my archives.

> (3)  Maybe not in the initial version, but eventually it might be
> nice to support URLs of some known protocols in addition to local
> directories.

I guess that if patches are provided in that direction it would be kind
of hard to refuse integrating them :)

> (4)  Maybe not in the initial version, but eventually it might be
> nice to support checking for an "owner" file of some sort in the
> target directory, to help sort out problems with copied databases
> writing to the same location as the source.

Then we need to provide the associated restore command which must not be
one "owner" here I guess…

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade automatic testing
Следующее
От: "Ross J. Reedstrom"
Дата:
Сообщение: Re: sha1, sha2 functions into core?