Re: DB2's row_number()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DB2's row_number()
Дата
Msg-id 5771.1058466650@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DB2's row_number()  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Список pgsql-hackers
Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> question is: How do I find out when a query starts? Inside a table 
> function I can call SRF_IS_FIRSTCALL() to see when it is called first. 
> Is there an easy way to check that inside an "ordinary" C function 
> returning just one value?

Use fn_extra to store some state data.
pg_stat_get_backend_idset() is a useful example.
        regards, tom lane


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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: Patches List
Следующее
От: Bruce Momjian
Дата:
Сообщение: I am back