Re: [HACKERS] backend dies suddenly after a lot of error messages

From: jwieck(at)debis(dot)com (Jan Wieck)
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: mirko(dot)kaffka(at)interface-business(dot)de, pgsql-general(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] backend dies suddenly after a lot of error messages
Date: 1999-05-12 16:34:16
Message-ID: m10hbxY-000EBeC@orion.SAPserv.Hamburg.dsh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

>
> Mirko Kaffka <mirko(at)interface-business(dot)de> writes:
> > We have problems with backend processes that close the channel because of
> > palloc() failures. When an INSERT statement fails, the backend reports an
> > error (e.g. `Cannot insert a duplicate key into a unique index') and
> > allocates a few bytes more memory. The next SQL statement that fails
> > causes the backend to allocate more memory again, etc. until we have no
> > more virtual memory left. Is this a bug?
>
> Yeah, I'd say so --- all the memory used should get freed at transaction
> end, but evidently it isn't happening.
>
> > We are using postgres 6.4.2 on FreeBSD 2.2.8.
>
> I still see it with 6.5-current sources. Will take a look.

I remember to have taken some but haven't found all the
places. I think there's still something in tcop where the
querytree list is malloc()'d.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck(at)debis(dot)com (Jan Wieck) #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message C. Wible 1999-05-12 20:34:31 VACUUM Hang on Empty Table
Previous Message Ari Halberstadt 1999-05-12 16:08:02 crashes on restart with "Tell bgahl@kd6kmx to fix this someday."

Browse pgsql-hackers by date

  From Date Subject
Next Message craig 1999-05-12 16:58:21 help
Previous Message Ross J. Reedstrom 1999-05-12 16:08:05 BUG? serials and primary keys (was Re: [INTERFACES] Bug in psql?)