Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: ERROR: invalid memory alloc request size <a_big_number_here>


  • From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Matteo Beccati <php(at)beccati(dot)com>, pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: ERROR: invalid memory alloc request size <a_big_number_here>
  • Date: Thu, 27 Oct 2005 09:48:29 -0400 (EDT)
  • Message-id: <200510271348(dot)j9RDmTR26145(at)candle(dot)pha(dot)pa(dot)us>

OK, developer's FAQ updated to mention errfinish,

---------------------------------------------------------------------------

Tom Lane wrote:
> Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> > Hmm, depends. It's not asked often, that for sure. Yet everytime it
> > comes up I keep forgetting if I should be breaking on errstart, errmsg
> > or something else. One of these days I might just write it on a post-it
> > note next to my computer.
> 
> I always break on errfinish myself.  At one time elog didn't go through
> errstart (it may still not, I forget) so errfinish was the only
> certainly common point for catching both elog and ereport.  Another
> advantage is that by that point, all the error info is set up and you
> can inspect it if you want to.
> 
> > - Note that DEBUG level message will trigger
> > - also so you might need to "cont" a few times to get the error you
> > - want.
> 
> Also, control doesn't come to errfinish at all unless the message is
> going to be printed, so the DEBUG-message problem goes away.
> 
> 			regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group