| From: | Łukasz Dejneka <l(dot)dejneka(at)gmail(dot)com> |
|---|---|
| To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Internal PG functions, how to pass proper parameters? |
| Date: | 2010-04-08 06:40:07 |
| Message-ID: | u2y4df5da451004072340m8398cc8cleb720e5dcc9c5bff@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
2010/4/7 Martijn van Oosterhout <kleptog(at)svana(dot)org>:
> This may be silly, but did you declare your function to be a V1
> function?
Yes, it is properly declared V1 function. The parameter is a pointer
so as I understand the concept it is used to access some other
processed data than the function result. But still can't get it
right...
>> Also a related question: Is it possible to launch a function like
>> gin_extract_query directly from Postgres? I'ts decralation is:
>>
>> CREATE OR REPLACE FUNCTION gin_extract_tsquery(tsquery, internal,
>> smallint, internal, internal)
>> RETURNS internal AS ....
>>
>> I've tried to find something about "internal" parameters in functions
>> in manual but failed. If it's possible, what would be a working
>> example?
>
> "internal" usually means a "pointer to something you can't make from
> SQL". So you might be able to declare the function, but in no way could
> you actually call it successfully.
Thank you for the answer !
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marc Mamin | 2010-04-08 07:44:47 | nice to have feature: default_index_tablespace |
| Previous Message | Utsav Turray | 2010-04-08 06:12:18 | Cannot read block 348938 of pdbsynchtable |