pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
FW: [ADMIN] Out of disk space- error code
2+ messages / 2 participants
[nested] [flat]

* FW: [ADMIN] Out of disk space- error code
@ 2003-05-15 10:39 Anagha Joshi <ajoshi@nulinkinc.com>
  2003-05-15 12:38 ` Re: FW: [ADMIN] Out of disk space- error code Andrew Sullivan <andrew@libertyrms.info>
  0 siblings, 1 reply; 2+ messages in thread

From: Anagha Joshi @ 2003-05-15 10:39 UTC (permalink / raw)
  To: pgsql-performance

 
 
-----Original Message-----
From: Anagha Joshi 
Sent: Wednesday, May 07, 2003 3:58 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Out of disk space- error code
 
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
 
 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: FW: [ADMIN] Out of disk space- error code
  2003-05-15 10:39 FW: [ADMIN] Out of disk space- error code Anagha Joshi <ajoshi@nulinkinc.com>
@ 2003-05-15 12:38 ` Andrew Sullivan <andrew@libertyrms.info>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Sullivan @ 2003-05-15 12:38 UTC (permalink / raw)
  To: pgsql-performance

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-05-15 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-15 10:39 FW: [ADMIN] Out of disk space- error code Anagha Joshi <ajoshi@nulinkinc.com>
2003-05-15 12:38 ` Andrew Sullivan <andrew@libertyrms.info>

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