Re: [HACKERS] best place for xstrdup

2003-09-16 Thread Mendola Gaetano
"Tom Lane" <[EMAIL PROTECTED]> wrote: > "Mendola Gaetano" <[EMAIL PROTECTED]> writes: > > if ( !ret_value ) { > > ereport(FATAL, > > (errcode(ERRCODE_OUT_OF_MEMORY), > > errmsg("strdup out of memory"))); > > } > > Sho

Re: [HACKERS] best place for xstrdup

2003-09-16 Thread Tom Lane
"Mendola Gaetano" <[EMAIL PROTECTED]> writes: > if ( !ret_value ) { > ereport(FATAL, > (errcode(ERRCODE_OUT_OF_MEMORY), > errmsg("strdup out of memory"))); > } Should be ERROR not FATAL (the places that are insisting

[HACKERS] best place for xstrdup

2003-09-16 Thread Mendola Gaetano
As suggested by Bruce Mojiman I'm working on substitute some strdup not checked with xstrdup. I seen that in the backend source tree there is no xstrdup ( there is one in bin/psql tree) , I wrote it and inserted temporarelly in backend/utils/mmgr/aset.c I don't know exactly how work the error