Re: pseudo-type record arguments for PL-functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pseudo-type record arguments for PL-functions
Date
Msg-id 5756.1146930899@sss.pgh.pa.us
Whole thread Raw
In response to Re: pseudo-type record arguments for PL-functions  (Thomas Hallgren <thomas@tada.se>)
Responses Re: pseudo-type record arguments for PL-functions
List pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> The thing that makes me a bit confused is the 
> ArrayMetaState. The functions obtain it using:

>     my_extra = (ArrayMetaState *) fcinfo->flinfo->fn_extra;

> which is fine if there's only one array parameter. What happens if I 
> have two?

Make a struct that can hold two ArrayMetaStates.  Or whatever else you
need.  What a C function keeps in fn_extra is its own affair.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: pseudo-type record arguments for PL-functions
Next
From: "Jonah H. Harris"
Date:
Subject: Re: InsertXLogFile in pg_resetxlog