Re: pl/perl error - Mailing list pgsql-general

From Frank
Subject Re: pl/perl error
Date
Msg-id 20060409225820.GA99804@forbidden.dough.net
Whole thread Raw
In response to Re: pl/perl error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sun, Apr 09, 2006 at 06:22:40PM -0400, Tom Lane wrote:
> Frank <archon@forbidden.dough.net> writes:
> > I have a perl script running as a daemon.  It's using DBD::Pg (1.43) to
> > connect to my Postgres server (8.0.7) running on the same box and talking
> > over a socket.  When I start the server, it runs fine for about a day, and
> > then at some point I start getting this error repeatedly:
>
> > DBD::Pg::db do failed: server closed the connection unexpectedly
> > This probably means the server terminated abnormally
> > before or while processing the request.
>
> Do you see any complaint in the postmaster log when this happens?  If so
> what?
>
> I'd personally wonder about a memory leak or something like that in your
> trigger functions.
>
>             regards, tom lane
>

After running with debugging at level 2, I saw that the script died at
00:57:35.  Attached is the log from that time.  I noticed specifically the
following lines:

Apr  9 00:57:35 MYSERVER postgres[7881]: [511892-1] LOG:  disconnection: session time: 9:33:45.60 user=dbuser
database=mydbhost=[local] port= 
Apr  9 00:57:35 MYSERVER postgres[7874]: [13-1] DEBUG:  server process (PID 7881) exited with exit code 0
Apr  9 00:57:35 MYSERVER postgres[7874]: [14-1] DEBUG:  forked new backend, pid=10009 socket=7

I don't see those lines at all before the problems begin, but I notice them
very often afterwards.  Would I see the memory leak in the postgres
footprint?  I will attempt to monitor the server's memory usage.  Any other
debugging tips?

Thanks,
Frank

pgsql-general by date:

Previous
From: Andrew - Supernews
Date:
Subject: Re: pg_restore 7.4.7 locks itself out
Next
From: v.suryaprabha@gmail.com
Date:
Subject: how to prevent generating same clipids