pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anagha Joshi <ajoshi@nulinkinc.com>
To: pgsql-admin@postgresql.org
Subject: Out of disk space- error code
Date: Wed, 7 May 2003 15:58:29 +0530
Message-ID: <FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com> (raw)

Hi,
 
I'm using PostgreSQL 7.1.2 on Sun Solaries 8.
 
My Server was kept for overnight test and I observed that on my server
hostmachine I could not switch user (su) to 'postgres' to see the
postgres pid. It looked as if the postgres process was tied up some how.

 
The server pids were available but postgress was not. This looked like a
potential database crash although there are no postgres core files or
logs that give clues as to what may have happned 
The zipped server logs display lots of error trying to locate the
postgres PID
 
The snapshot of the Postgres log is like this:
ERROR:  cannot extend trap: No space left on device.
            Check free disk space.
ERROR:  cannot extend trap: No space left on device.
            Check free disk space.
ERROR:  cannot extend trap: No space left on device.
            Check free disk space.
ERROR:  cannot extend trap: No space left on device.
 
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.
 
Pls. help ASAP.
Thanks in advance,
 
Anagha Joshi
 
 

view thread (2+ messages)

Message-ID: <FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com>
Permalink:  ../FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com/
Also on:    postgresql.org/message-id/FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com

 · 

reply

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: ajoshi@nulinkinc.com
  Subject: Re: Out of disk space- error code
  In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com>
  References: <FF851C7EEB75954F9BCFB5CA117AB1EC09280C@delta.nulinkinc.com>

* 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