Re: Writing SRF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jorge Arevalo <jorgearevalo(at)gis4free(dot)org>
Cc: PostgreSQL - General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Writing SRF
Date: 2010-04-29 13:56:14
Message-ID: 10629.1272549374@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jorge Arevalo <jorgearevalo(at)gis4free(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Geoffrey 2010-04-29 13:58:26 using between with dates
Previous Message Kenneth Marshall 2010-04-29 13:56:02 Re: [SQL] Tsearch not searching 'Y'