X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id EA0B7924D9A for ; Wed, 21 May 2003 10:53:56 -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 26724-02 for ; Wed, 21 May 2003 10:53:25 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by developer.postgresql.org (Postfix) with ESMTP id 99521925140 for ; Wed, 21 May 2003 10:25:49 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4LEPgU6006955; Wed, 21 May 2003 10:25:42 -0400 (EDT) To: "A.Bhuvaneswaran" Cc: pgsql-admin@postgresql.org Subject: Re: Logfile removal In-reply-to: References: Comments: In-reply-to "A.Bhuvaneswaran" message dated "Wed, 21 May 2003 11:04:39 +0530" Date: Wed, 21 May 2003 10:25:42 -0400 Message-ID: <6954.1053527142@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/275 X-Sequence-Number: 8837 "A.Bhuvaneswaran" writes: > I have run postmaster with -l option. When postmaster is running, i have > removed the logfile accidentally. You mean the -l logfile (postmaster's stderr)? This is harmless except that you won't have any way to look at the logfile. > I am unable to restart postmaster now due to various other reasons. The only way to start seeing the entries again is to restart the postmaster, so I'd counsel doing that as soon as feasible. What's actually happened is that the logfile is still on your disk (and growing all the time...) but there is no link left to it in your filesystem. The kernel knows the file is still referenced by the open filetable entry held by the postmaster, so it won't delete the file till the postmaster quits. But you have no way to get at it. regards, tom lane