Re: Error when defining a set returning function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Esteban Zimanyi <ezimanyi(at)ulb(dot)ac(dot)be>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Error when defining a set returning function
Date: 2021-04-16 17:04:10
Message-ID: 4164389.1618592650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Esteban Zimanyi <ezimanyi(at)ulb(dot)ac(dot)be> writes:
> When debugging the function with gdb, I noticed that the rsinfo variable of
> the PostgreSQL function ExecMakeFunctionResultSet is modified in the
> macro SRF_RETURN_NEXT causing the problem. Any idea how to solve this?

Well, what SRF_RETURN_NEXT thinks it's doing is

rsi->isDone = ExprMultipleResult; \

which surely shouldn't change the returnMode field. At this point
I'm guessing that you are compiling the PG headers with some compiler
pragma that changes the struct packing rules. Don't do that.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2021-04-16 17:04:16 Re: Bogus collation version recording in recordMultipleDependencies
Previous Message Tom Lane 2021-04-16 16:55:28 Re: Bogus collation version recording in recordMultipleDependencies