From: | Esteban Zimanyi <ezimanyi(at)ulb(dot)ac(dot)be> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Error when defining a set returning function |
Date: | 2021-04-16 19:32:22 |
Message-ID: | CAPqRbE7j=vV1Osp1vo5hx8+tZWLYHB4_-GJW8kGEZViXCs3iYg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Many thanks Tom for your help !
I removed the flag -fshort-enums and everything works fine !
On Fri, Apr 16, 2021 at 7:04 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2021-04-16 20:16:07 | Re: ANALYZE counts LP_DEAD line pointers as n_dead_tup |
Previous Message | PegoraroF10 | 2021-04-16 18:14:19 | More info on pg_stat_activity Wait Event Name when is DataFileRead |