From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: FW: [ADMIN] Out of disk space- error code
Date: Thu, 15 May 2003 08:38:22 -0400
Message-ID: <20030515123822.GC23812@libertyrms.info> (raw)
In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC61A3A4@delta.nulinkinc.com>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A3A4@delta.nulinkinc.com>
On Thu, May 15, 2003 at 04:09:44PM +0530, Anagha Joshi wrote:
> The snapshot of the Postgres log is like this:
> ERROR: cannot extend trap: No space left on device.
> Check free disk space.
[. . .]
>
> That was clear from the logs that disk is full. But is there anyway that
> I can check this programatically? i.e. when I call 'PgDatabase::Exec()'
> to execute query from C++ API, I get error code reflecting 'low on the
> disk'? I know I can get corresponding error message in C++ from Postgres
> by
> 'errorMessage()' method. I want specific error code for this.
Postgres relies on your filesystem and OS. It doesn't know you're
low on disk until it gets the error from the OS. Use your OS to warn
you if you're going to run out of space.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
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-performance@postgresql.org
Cc: andrew@libertyrms.info
Subject: Re: FW: [ADMIN] Out of disk space- error code
In-Reply-To: <20030515123822.GC23812@libertyrms.info>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A3A4@delta.nulinkinc.com> <20030515123822.GC23812@libertyrms.info>
* 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