Re: reallocing without oom check in pg_regress - Mailing list pgsql-hackers

From Tom Lane
Subject Re: reallocing without oom check in pg_regress
Date
Msg-id 1257248.1645653915@sss.pgh.pa.us
Whole thread Raw
In response to reallocing without oom check in pg_regress  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: reallocing without oom check in pg_regress
List pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> 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.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: convert libpq uri-regress tests to tap test
Next
From: "Euler Taveira"
Date:
Subject: Re: logical decoding and replication of sequences