Re: C trigger significantly slower than PL/pgSQL?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C trigger significantly slower than PL/pgSQL?
Дата
Msg-id 826406.1681301955@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: C trigger significantly slower than PL/pgSQL?  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-interfaces
Dave Cramer <davecramer@postgres.rocks> writes:
> Fair. So to answer your question. The C function should be faster.

If we exclude basic coding errors (i.e. not really "equivalent"
processing) then a possible theory is that plpgsql is being careful
to cache a query plan that your C code is causing to be recomputed
each time.  But yeah, all else being equal plpgsql should be slower.

            regards, tom lane



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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: C trigger significantly slower than PL/pgSQL?
Следующее
От: pgchem pgchem
Дата:
Сообщение: Re: C trigger significantly slower than PL/pgSQL?