pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
version 0 calling convention
3+ messages / 3 participants
[nested] [flat]

* version 0 calling convention
@ 2021-07-22 16:18  Mark Lybarger <mlybarger@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Mark Lybarger @ 2021-07-22 16:18 UTC (permalink / raw)
  To: pgsql-general

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?

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).

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: version 0 calling convention
@ 2021-07-22 16:21  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Mark Lybarger <mlybarger@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Adrian Klaver @ 2021-07-22 16:21 UTC (permalink / raw)
  To: Mark Lybarger <mlybarger@gmail.com>; 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.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: version 0 calling convention
@ 2021-07-22 16:22  Pavel Stehule <pavel.stehule@gmail.com>
  parent: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Pavel Stehule @ 2021-07-22 16:22 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Mark Lybarger <mlybarger@gmail.com>; pgsql-general

č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=5ded4bd21403e143dd3eb66b92d52732f...

Regards

Pavel


>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-07-22 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 16:18 version 0 calling convention Mark Lybarger <mlybarger@gmail.com>
2021-07-22 16:21 ` Adrian Klaver <adrian.klaver@aklaver.com>
2021-07-22 16:22   ` Pavel Stehule <pavel.stehule@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox