Re: Writing SRF - Mailing list pgsql-general

From Tom Lane
Subject Re: Writing SRF
Date
Msg-id 10629.1272549374@sss.pgh.pa.us
Whole thread Raw
In response to Re: Writing SRF  (Jorge Arevalo <jorgearevalo@gis4free.org>)
Responses Re: Writing SRF
List pgsql-general
Jorge Arevalo <jorgearevalo@gis4free.org> writes:
> Yes. For example, the function expects 2 arguments, and it's called
> with 2 arguments: 1 composite type (following this format
> https://svn.osgeo.org/postgis/spike/wktraster/doc/RFC1-SerializedFormat)
> and one integer. But PG_NARGS() returns a really big value (16297)
> when I first check the number of arguments at the beginning of the
> function. Has sense?

Given only that data point, I would guess that you forgot to mark the
function as being called with V1 protocol (PG_FUNCTION_INFO_V1).

            regards, tom lane

pgsql-general by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: [SQL] Tsearch not searching 'Y'
Next
From: Tom Lane
Date:
Subject: Re: Tsearch not searching 'Y'