connection handling in 7.4.1

Started by Scott Yeadonabout 22 years ago2 messagesbugs
Jump to latest
#1Scott Yeadon
scott.yeadon@anu.edu.au

Hi,

Postgres is part of the openSource repository DSpace which we are running here
at ANU. I upgraded from 7.4 to 7.4.1 on 17 January. Today (21/1) it appears
that either the number of connections has been reached (which is not possible
on my local install) or the database itself has locked up. Postmaster was
restarted on 20/1 so the problemt has taken 2 days to surface. I have not had
a chance to look much deeper into the problem as I don't expect to get time
to investigate until next week.

The log output postgres returned is as follows:
FATAL: the database system is shutting down

The application log is as follows:

Note that postgres is the only thing that has changed, no other software has
been updated. This did not occur under 7.4

A secondary issue is that postmaster will not shut down properly under 7.4.1,
I always have to use the "fast" shutdown mode. Has anything changed in the
connection handling, as if connections are not being released this could
easily cause the first problem? Again, this appears peculiar to 7.4.1.

Thanks.

Scott.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Scott Yeadon (#1)
Re: connection handling in 7.4.1

Scott Yeadon <scott.yeadon@anu.edu.au> writes:

The log output postgres returned is as follows:
FATAL: the database system is shutting down

Sounds to me like something told the postmaster to shut down (sent it a
SIGTERM signal, in other words). If you are certain you did not do this
manually, look around to see if there's any resource-limiting code in
effect that might try to kill the postmaster after it's used X amount of
cpu time or disk space or whatever.

A secondary issue is that postmaster will not shut down properly under 7.4.1,
I always have to use the "fast" shutdown mode.

You have a client that's not letting go of its connection.

regards, tom lane