From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Mark Lybarger <mlybarger(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: version 0 calling convention |
Date: | 2021-07-22 16:21:27 |
Message-ID: | fd26d2ec-d1cf-9cb5-ad13-11dd60b45c96@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 7/22/21 9:18 AM, Mark Lybarger wrote:
> i have some sql functions written in c code using version 0 calling
> convention. it's working fine on postgresql 9.6, but i'm migrating to
> v13. has this calling convention been removed?
https://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.7
"Currently only one calling convention is used for C functions (“version
1”). Support for that calling convention is indicated by writing a
PG_FUNCTION_INFO_V1() macro call for the function, as illustrated below."
>
> my function creation give an error,
>
> SQL Error [42883]: ERROR: could not find function information for
> function "test_func"
> Hint: SQL-callable functions need an accompanying
> PG_FUNCTION_INFO_V1(funcname).
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2021-07-22 16:22:22 | Re: version 0 calling convention |
Previous Message | Mark Lybarger | 2021-07-22 16:18:51 | version 0 calling convention |