[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Re: version 0 calling convention
From: Pavel Stehule <pavel.stehule () gmail ! com>
Date: 2021-07-22 16:22:22
Message-ID: CAFj8pRAmNAPFP7jJNpprywpqcaoYjNdtmajxQOM-gzxO+0wGnA () mail ! gmail ! com
[Download RAW message or body]
čt 22. 7. 2021 v 18:21 odesílatel Adrian Klaver <adrian.klaver@aklaver.com>
napsal:
> 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).
>
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=5ded4bd21403e143dd3eb66b92d52732fdac1945
Regards
Pavel
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
>
>
[Attachment #3 (text/html)]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">čt 22. 7. 2021 v 18:21 odesílatel Adrian Klaver <<a \
href="mailto:adrian.klaver@aklaver.com">adrian.klaver@aklaver.com</a>> \
napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 7/22/21 9:18 AM, \
Mark Lybarger wrote:<br> > i have some sql functions written in c code using \
version 0 calling <br> > convention. it's working fine on postgresql 9.6, \
but i'm migrating to <br> > v13. has this calling convention been \
removed?<br> <br>
<a href="https://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.7" \
rel="noreferrer" target="_blank">https://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.7</a><br>
<br>
"Currently only one calling convention is used for C functions ("version <br>
1"). Support for that calling convention is indicated by writing a <br>
PG_FUNCTION_INFO_V1() macro call for the function, as illustrated below."<br>
<br>
> <br>
> my function creation give an error,<br>
> <br>
> SQL Error [42883]: ERROR: could not find function information for <br>
> function "test_func"<br>
> Hint: SQL-callable functions need an accompanying <br>
> PG_FUNCTION_INFO_V1(funcname).<br></blockquote><div><br></div><div><a \
href="https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=5ded4bd21403e \
143dd3eb66b92d52732fdac1945">https://git.postgresql.org/gitweb/?p=postgresql.git;a=com \
mitdiff;h=5ded4bd21403e143dd3eb66b92d52732fdac1945</a></div><div><br></div><div>Regards</div><div><br></div><div>Pavel</div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> <br>
<br>
-- <br>
Adrian Klaver<br>
<a href="mailto:adrian.klaver@aklaver.com" \
target="_blank">adrian.klaver@aklaver.com</a><br> <br>
<br>
</blockquote></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic