Re: reallocing without oom check in pg_regress

2022-02-24 Thread Daniel Gustafsson
> On 23 Feb 2022, at 23:05, Tom Lane wrote: > > Daniel Gustafsson writes: >> In pg_regress we realloc() with the destination and source pointer being >> equal, >> without checking for OOM. While a fairly unlikely source of errors, is >> there a >> reason not to use pg_realloc() there for hygi

Re: reallocing without oom check in pg_regress

2022-02-23 Thread Tom Lane
Daniel Gustafsson writes: > In pg_regress we realloc() with the destination and source pointer being > equal, > without checking for OOM. While a fairly unlikely source of errors, is there > a > reason not to use pg_realloc() there for hygiene? Yeah, looks like oversight to me.

reallocing without oom check in pg_regress

2022-02-23 Thread Daniel Gustafsson
In pg_regress we realloc() with the destination and source pointer being equal, without checking for OOM. While a fairly unlikely source of errors, is there a reason not to use pg_realloc() there for hygiene? -- Daniel Gustafsson https://vmware.com/ pg_regress_realloc.diff Descri