Re: Re: [COMMITTERS] pgsql: Don't use "cp -i" in the example WAL archive_command.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Thom Brown <thom(at)linux(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Don't use "cp -i" in the example WAL archive_command.
Date: 2011-06-18 22:15:10
Message-ID: 26235.1308435310@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Perhaps we should recommend:
> cd /path && test ! -f %f && cp %p %f
> That is shorter and removes the duplicate problem.

Um ... %p is relative to the database directory.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2011-06-18 22:18:50 pgsql: Make external_pid_file world readable
Previous Message Bruce Momjian 2011-06-18 22:10:53 Re: Re: [COMMITTERS] pgsql: Don't use "cp -i" in the example WAL archive_command.

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-06-18 22:18:50 pgsql: Make external_pid_file world readable
Previous Message Bruce Momjian 2011-06-18 22:10:53 Re: Re: [COMMITTERS] pgsql: Don't use "cp -i" in the example WAL archive_command.