Re: Uniforms the errors msgs at tuplestore paths

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Ranier Vilela <ranier.vf@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2022-02-21T01:07:59Z
Lists: pgsql-hackers
On Sun, Feb 20, 2022 at 11:37:33AM -0300, Ranier Vilela wrote:
> I can't see:
> plperl.c
> pl_exec.c
> pttcl.c
> 
> Only jsonfuncs.c, but the error about "materialized mode" is not reported.

Melanie has done a nice analysis of all the code paths doing
materialization checks for her patch with SRF functions.  Though there
are parts that can be simplified to reduce the differences in check
patterns before doing the overall refactoring, I think that we'd
better keep any discussion related to this topic on the other thread
rather than splitting the effort across more threads.
--
Michael

Commits

  1. Simplify more checks related to set-returning functions

  2. Fix inconsistencies in SRF checks of pg_config() and string_to_table()