From: Tom Lane <tgl@sss.pgh.pa.us>
To: A.Bhuvaneswaran <bhuvansql@myrealbox.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Logfile removal
Date: Wed, 21 May 2003 10:25:42 -0400
Message-ID: <6954.1053527142@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0305211100000.1012-100000@Bhuvan.bksys.co.in>
References: <Pine.LNX.4.44.0305211100000.1012-100000@Bhuvan.bksys.co.in>
"A.Bhuvaneswaran" <bhuvansql@myrealbox.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bhuvansql@myrealbox.com
Subject: Re: Logfile removal
In-Reply-To: <6954.1053527142@sss.pgh.pa.us>
References: <Pine.LNX.4.44.0305211100000.1012-100000@Bhuvan.bksys.co.in> <6954.1053527142@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox