Re: Query execution in Perl TAP tests needs work

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Query execution in Perl TAP tests needs work
Дата
Msg-id 97d1d1b9-d147-f69d-1991-d8794efed41c@dunslane.net
обсуждение исходный текст
Ответ на Re: Query execution in Perl TAP tests needs work  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2023-10-18 We 11:47, Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Wed, Oct 18, 2023 at 10:28 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> I did a bit of research on this on my favorite platforms, and did
>>> not like the results:
>> Hmm. That's unfortunate. Is perl -MCPAN -e 'install Platypus::FFI' a
>> viable alternative?
> Probably, see my followup.
>
>             


Interesting. OK, here's an attempt to push the cart a bit further down 
the road. The attached module wraps quite a lot of libpq, at least 
enough for most of the cases we would be interested in, I think. It also 
exports some constants such as connection status values, query status 
values, transaction status values and type Oids. It also makes the 
absence of FFI::Platypus not instantly fatal, but any attempt to use one 
of the wrapped functions will die with a message about the module being 
missing if it's not found.

I guess the next step would be for someone to locate some of the 
hotspots in the TAP tests and try to convert them to using persistent 
connections with this gadget or similar and see how much faster we can 
make them.


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com

Вложения

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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Various bugs if segment containing redo pointer does not exist