Re: [HACKERS] Why does plpython delay composite type resolution?

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема Re: [HACKERS] Why does plpython delay composite type resolution?
Дата
Msg-id 46410e71-5858-5984-48de-550953e819b2@proxel.se
обсуждение исходный текст
Ответ на [HACKERS] Why does plpython delay composite type resolution?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: [HACKERS] Why does plpython delay composite type resolution?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 12/21/2016 04:14 AM, Jim Nasby wrote:
> Why do functions that accept composite types delay type resolution until
> execution? I have a naive patch that speeds up plpy.execute() by 8% by
> caching interred python strings for the dictionary key names (which are
> repeated over and over). The next step is to just pre-allocate those
> strings as appropriate for the calling context, but it's not clear how
> to handle that for input arguments.

Does your patch handle "ALTER TYPE name ADD ATTRIBUTE ..."? My immediate 
guess would be that it could be a cache invalidation thing.

Andreas



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

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: [HACKERS] Replication slot xmin is not reset if HS feedback isturned off while standby is shut down
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] [PATCH] Transaction traceability - txid_status(bigint)