X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 03DB7925194 for ; Wed, 21 May 2003 07:09:29 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 00810-01 for ; Wed, 21 May 2003 07:08:56 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by developer.postgresql.org (Postfix) with ESMTP id 01E2F92507D for ; Wed, 21 May 2003 07:08:55 -0400 (EDT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19IRSq-0006R6-00 for ; Wed, 21 May 2003 07:08:56 -0400 Received: by dba2 (Postfix, from userid 1019) id 01AE8CF5F; Wed, 21 May 2003 07:08:55 -0400 (EDT) Date: Wed, 21 May 2003 07:08:55 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: Logfile removal Message-ID: <20030521110855.GC15901@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/274 X-Sequence-Number: 8836 On Wed, May 21, 2003 at 11:04:39AM +0530, A.Bhuvaneswaran wrote: > I have run postmaster with -l option. When postmaster is running, i have > removed the logfile accidentally. Define "logfile". Do you mean the pg_xlog? If no, then your start-up script will presumably create the log file for you when you re-start. If yes, however, then. . . > I am unable to restart postmaster now > due to various other reasons. . . .it's not only other reasons. You'll need to run pg_resetxlog. Keep in mind that you are likely to have a mess on your hands afterwards. In particular, there may be inconsistencies in your data. Read the relevant docs. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110