Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7j9A-0002Ny-3R for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2013 09:38:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V7j98-0007nR-In for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2013 09:38:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7j97-0007nG-AL for pgsql-general@postgresql.org; Fri, 09 Aug 2013 09:38:09 +0000 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V7j94-0001Jf-Da for pgsql-general@postgresql.org; Fri, 09 Aug 2013 09:38:08 +0000 Received: by mail-pd0-f180.google.com with SMTP id y10so344277pdj.11 for ; Fri, 09 Aug 2013 02:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HJIeC8cnJThwvzaDALJQ+241KLzbtTWes3LDB+FWh/4=; b=zU27dyRn7pDMCM64uLzilri+ZTX6wCYWZe/nVPGM79MpVXgi9srfUK1RTNOa9mN+Iv abQQVjh4ESrh/O44gywgSurLJ3jfYcwqX+9dEs8rWooZbtrb9k8PMMGoy5mIHLHEiOip oMNFO6YOETJc3j0AG1oob9UDn8eHPOXcTrdbvo7w/EcUD/t+Q6wbfrtSScEOwV//aj0B ozWT6yOB7DuBv0FnwcHTPEz0axhjLZx+1vuNmq4IjXeJt276hQt89o6akDF0lnEqzIw/ QUVMLj8bENUBRFDQxZFlM7HO1OapoHwczExLGyB+B1i2usHVhvp+eW6voa00mHUkOL4q ZF5Q== X-Received: by 10.68.234.72 with SMTP id uc8mr10713535pbc.35.1376041085112; Fri, 09 Aug 2013 02:38:05 -0700 (PDT) Received: from [192.168.0.102] (014136185055.ctinets.com. [14.136.185.55]) by mx.google.com with ESMTPSA id sz6sm21541114pab.5.2013.08.09.02.38.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Aug 2013 02:38:04 -0700 (PDT) Subject: archive folder housekeeping Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: "ascot.moss@gmail.com" In-Reply-To: Date: Fri, 9 Aug 2013 17:38:01 +0800 Cc: ascot.moss@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <8670BB47-99CA-4646-85DB-F501F2188D7C@gmail.com> References: <1375985902.2599.YahooMailNeo@web162904.mail.bf1.yahoo.com> To: PostgreSQL general X-Mailer: Apple Mail (2.1085) X-Pg-Spam-Score: -0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Hi, I have enabled archive in PG (v 9.2.4): archive_mode =3D on archive_command =3D 'test ! -f /usr/local/pgsql/data/archive/%f && cp %p /u= sr/local/pgsql/data/archive/%f' I know that pg_xlog folder is maintained by PostgreSQL automatically, when= the pg_xlog folder hits to certain limit (pg_xlog is full), it will autom= atically archive old log files into the archive folder. Is the parameter w= al_keep_segments used to control this limit? On the other hand, will PostgreSQL also automatically maintain the archive = folder by itself or I need to do some housekeeping job to maintain it from = time to time? Is there any PG manual command available to remove archived = files by (archive) date/time?=20 Can you please advise? regards=20 --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general