Re: SQL/JSON features for v15

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: SQL/JSON features for v15
Дата
Msg-id 20220823155511.ffyntlyjl6wrgljv@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: SQL/JSON features for v15  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: SQL/JSON features for v15  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: SQL/JSON features for v15  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi,

On 2022-08-23 10:51:04 -0400, Robert Haas wrote:
> I do not think that using subtransactions as part of the expression
> evaluation process is a sound idea pretty much under any
> circumstances. Maybe if the subtransations aren't commonly created and
> don't usually get XIDs there wouldn't be a big problem in practice,
> but it's an awfully heavyweight operation to be done inside expression
> evaluation even in corner cases. I think that if we need to make
> certain operations that would throw errors not throw errors, we need
> to refactor interfaces until it's possible to return an error
> indicator up to the appropriate level, not just let the error be
> thrown and catch it.

I don't think that's quite realistic - that's the input/output functions for
all types, basically.  I'd be somewhat content if we'd a small list of very
common coercion paths we knew wouldn't error out, leaving things like OOM
aside. Even just knowing that for ->text conversions would be a huge deal in
the context of this patch.  One problem here is that the whole type coercion
infrastructure doesn't make it easy to know what "happened inside" atm, one
has to reconstruct it from the emitted expressions, where there can be
multiple layers of things to poke through.

Greetings,

Andres Freund



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: SQL/JSON features for v15
Следующее
От: Zhihong Yu
Дата:
Сообщение: Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)