Re: Warning: Don't delete those /tmp/.PGSQL.* files

From: GH <grasshacker(at)over-yonder(dot)net>
To:
Cc: Joel Burton <jburton(at)scw(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Warning: Don't delete those /tmp/.PGSQL.* files
Date: 2000-11-25 23:03:27
Message-ID: 20001125170327.B39388@over-yonder.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Sat, Nov 25, 2000 at 05:35:13PM -0500, some SMTP stream spewed forth:
*snip*
>
> > So, I began restarting pgsql w/a line like
>
> > rm -f /tmp/.PGSQL.* && postmaster -i >log 2>log &
>
> > Which works great. Except that I *kept* using this for two weeks
> > after the view problem (damn that bash up-arrow laziness!), and
> > yesterday, used it to restart PostgreSQL except (oops!) it was
> > already running.
>
> > Results: no database at all. All classes (tables/views/etc) returned
> > 0 records (meaning that no tables showed up in psql's \d, since
> > pg_class returned nothing.)
>

*snip Tom's reply*
I have a situation vaguely related to this.
At some point Postgres was not shut down properly and now everytime at
startup I the error log gets something like:

---------
root% tail -f errlog
Waiting for postmaster starting up...DEBUG: Data Base System is starting
up at Sat Nov 25 16:53:10 2000
DEBUG: Data Base System was interrupted being in production at Sat Nov
25 16:35:27 2000
DEBUG: Data Base System is in production state at Sat Nov 25 16:53:10
2000
FATAL 1: ReleaseLruFile: No open files available to be closed
............................................................pg_ctl:
postmaster does not start up
---------

After that, all postgres processes die and the cycle begins again on
subsequent attempts to start postgres.
At one point I would receive some "Too many open files" (or similar)
error with postgres holding more than 750 file descriptors -- almost
entirely consisting of socket streams.
What is the significance of "ReleaseLruFile" and how can I repair this?

This is using FreeBSD 4.1-RELEASE and Postgres 7.0.2.

Thanks

gh

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-11-25 23:10:40 Re: Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files
Previous Message Larry Rosenman 2000-11-25 22:40:43 Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-11-25 23:03:43 Re: OK, that's one LOCALE bug report too many...
Previous Message Larry Rosenman 2000-11-25 22:40:43 Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files