Re: Proposal: is_castable
От
Pavel Stehule
Тема
Re: Proposal: is_castable
Дата
Msg-id
CAFj8pRBHig4HD4dVhH1PffixX4pcaL2E5jvfqs022cNABKLt6A@mail.gmail.com
Ответ на
Re: Proposal: is_castable (Adam Brusselback)
Список
Дерево обсуждения
Proposal: is_castable Michał Wadas <michalwadas@gmail.com>
Re: Proposal: is_castable Tom Lane <tgl@sss.pgh.pa.us>
Re: Proposal: is_castable Adam Brusselback <adambrusselback@gmail.com>
Re: Proposal: is_castable Pavel Stehule <pavel.stehule@gmail.com>
Re: Proposal: is_castable Pavel Stehule <pavel.stehule@gmail.com>
Hi
So it's a two step process for me currently because of this, I would love if there was a better way to handlethis type of work though, because my plpgsql functions using exception blocks are not exactly greatfor performance.
Probably we can for some important buildin types write method "is_valid", and this method can be called directly. For custom types or for types without this method, the solution based on exceptions can be used.
This should not be too much code, and can be fast for often used types.
В списке pgsql-hackers по дате отправления
От: Petr Jelinek
Дата: