Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 69276F7659 for ; Wed, 11 Apr 2012 11:08:59 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHyED-0008B6-5m for pgsql-admin@postgresql.org; Wed, 11 Apr 2012 14:08:58 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3BE8fU6022266; Wed, 11 Apr 2012 10:08:41 -0400 (EDT) To: "L'Huillier, Jeff" cc: pgsql-admin@postgresql.org Subject: Re: 9.0.4/7 WAL Archiving: archive_command add date-time to cp of filename In-reply-to: <7CF5C5C9FE3CE140AD240A391A7681FBF5CC0F@USRN4EX0ONS06.onstar.ad.gm.com> References: <7CF5C5C9FE3CE140AD240A391A7681FBF5CC0F@USRN4EX0ONS06.onstar.ad.gm.com> Comments: In-reply-to "L'Huillier, Jeff" message dated "Wed, 11 Apr 2012 09:54:31 -0400" Date: Wed, 11 Apr 2012 10:08:41 -0400 Message-ID: <22265.1334153321@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/54 X-Sequence-Number: 39390 "L'Huillier, Jeff" writes: > When enabling WAL archiving and setting up the archive_command, is it > possible to add the date & time as an extension to the %f copied to the > archive directory in order to avoid overwriting a file of the same name? Why would you think that's necessary? Please see the recommendations for archive scripts, which tell you to simply refuse to copy in such a case. regards, tom lane