Re: [patch] pg_copy - a command for reliable WAL archiving

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [patch] pg_copy - a command for reliable WAL archiving
Дата
Msg-id CAM-w4HMdnAEZerVKeSV5YOhN6z1Jk3506DVF+0QzCzY=Gwg5RA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [patch] pg_copy - a command for reliable WAL archiving  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: [patch] pg_copy - a command for reliable WAL archiving  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
On Tue, Aug 19, 2014 at 10:42 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Is there a way to create a link to a file which only exists as an open
> file descriptor?   If there was, you could create a temp file, open an
> fd, then delete the file.  That would remove the issue with files being
> leaked due to failures of various kinds.


Sort of. On recent Linuxen you can create a file with open(O_TMPFILE)
then use linkat(2) to create a link for it only once it's fully
written.

-- 
greg



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [PATCH] Incremental backup: add backup profile to base backup
Следующее
От: Greg Stark
Дата:
Сообщение: Re: [patch] pg_copy - a command for reliable WAL archiving