archive_command vs. cp -i

Поиск
Список
Период
Сортировка
От Martin Münstermann
Тема archive_command vs. cp -i
Дата
Msg-id 20110617084057.238070@gmx.net
обсуждение исходный текст
Ответы Re: archive_command vs. cp -i  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin
Hi,

while setting up a new linux postgresql server, I checked my archive_command.
I noticed that the usual "cp -i f1 f2 < /dev/null" did NOT as expected:
It did not overwrite the file (PASS), but it returned zero (FAIL, should return error).

This could be reproduced on CentOS 5.6, RHEL4, and Ubuntu 10.04.

This is my test:
echo huhu  > file1
echo hello > file2
/bin/cp -i  file2 file1 < /dev/null
echo $?   # should return != 0
diff -s file1 file2

Am I missing something here?
Should the BACKUP-ARCHIVING-WAL doc be changed?

Regards,
 Martin

--
NEU: FreePhone - kostenlos mobil telefonieren!
Jetzt informieren: http://www.gmx.net/de/go/freephone

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

Предыдущее
От: Pratheeban Jebasingh Tharmaraj
Дата:
Сообщение: Postgres 8.3.10 Alter Table Waiting issue
Следующее
От: Andreas Berger
Дата:
Сообщение: Re: alter table without an ACCESS EXCLUSIVE lock