Re: pg_stat_get_replication_slot() marked not strict, crashes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_stat_get_replication_slot() marked not strict, crashes
Date
Msg-id 170885.1648330913@sss.pgh.pa.us
Whole thread Raw
In response to pg_stat_get_replication_slot() marked not strict, crashes  (Andres Freund <andres@anarazel.de>)
Responses Re: pg_stat_get_replication_slot() marked not strict, crashes
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I wonder if we ought to make PG_GETARG_DATUM(n) assert that !PG_ARGISNULL(n)?
> That'd perhaps make it easier to catch some of these...

Don't see the point; such cases will crash just fine without any
assert.  The problem is lack of test coverage ...

> It'd be nice to have a test in sanity check to just call each non-strict
> function with NULL inputs automatically. But the potential side-effects
> probably makes that not a realistic option?

... and as you say, brute force testing seems difficult.  I'm
particularly worried about multi-argument functions, as in
principle we'd need to check each argument separately, and cons
up something plausible to pass to the other arguments.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Column Filtering in Logical Replication
Next
From: Andrew Dunstan
Date:
Subject: Re: Why is lorikeet so unstable in v14 branch only?