Returning tuple(s) from C-Functions

Поиск
Список
Период
Сортировка
От Philip Poten
Тема Returning tuple(s) from C-Functions
Дата
Msg-id 3AE95492.D70F686C@linuxteam.at
обсуждение исходный текст
Ответы Re: Returning tuple(s) from C-Functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi.

I'm into programming a function for pg for searching a ldap directory.
But this whole effort has absolutely no sense, if i don't find a way to
return _at least_ one whole tuple from a C-Function, e.g.

create function foobar(footable)
    returns bartable
    as '/var/lib/pgsql/data/foobar.o'
    language 'c'
;

and i return a pointer to a tuple or something?

This is what the FAQ says about it:

5.3) How do I write a C function to return a tuple?

This requires wizardry so extreme that the authors have never tried it,
though in principle it can be done?

Is this answer still correct? Is there a way to do it with 7.1?
Can i write to a temporary table in this function and insert into the
backend somehow?
I'm not expecting too much people having this done, but if anyone did
it, please reply...

tia,
Philip

--
| | Philip Poten|\ \ | | | | | | \ \/ / YL
| | Unix Operator \ \| | | | | |  \ \/   i
| |_+43/1/91 999 - 207 | | |_| |  /\ \   n
|___philip.poten@linuxteam.at_/  / /\ \  e




В списке pgsql-general по дате отправления:

Предыдущее
От: Peter T Mount
Дата:
Сообщение: Re: how to migrate from SQL Server7 to PostgreSQL7??
Следующее
От: "Clayton Vernon"
Дата:
Сообщение: caching/ virtual file systems