Re: Re: [HACKERS] to_char() dumps core - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Re: [HACKERS] to_char() dumps core
Date
Msg-id 200010201733.NAA21015@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] to_char() dumps core  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: Re: [HACKERS] to_char() dumps core  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-patches
> > > causes backend dump a core if n is a float/numeric ...data type AND if
> > > sum(n) returns NULL. This seems due to a bad null pointer handling for
> > > aruguments of pass-by-reference data types.  I think just a simple
> > > null pointer checking at very top of each function (for example
> > > float4_to_char()) would solve the problem.  Comments?
> >
> >  In the 7.1devel it's correct, but here it's bug, IMHO it bear on changes
> > in the 7.1's fmgr, because code is same in both versions for this. On Monday,
> > I try fix it for 7.0.3
>
>  Not, monday .. just now :-)
>
>  The patch is attached... Bruce, it's again to 7.0.3!

Got it.  You don't have to hit me over head all the time (just most of
the time).  :-)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Karel Zak
Date:
Subject: Re: [HACKERS] to_char() dumps core
Next
From: Karel Zak
Date:
Subject: Re: Re: [HACKERS] to_char() dumps core