Re: [PATCH] OAuth: fix performance bug with stuck multiplexer events

Поиск
Список
Период
Сортировка
От Jacob Champion
Тема Re: [PATCH] OAuth: fix performance bug with stuck multiplexer events
Дата
Msg-id CAOYmi+m6t7r3jvDH-vUmy+GS_ZhstnPViE6Hee8c_M=_ASM9hg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] OAuth: fix performance bug with stuck multiplexer events  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
Ответы Re: [PATCH] OAuth: fix performance bug with stuck multiplexer events
Список pgsql-hackers
On Fri, Aug 8, 2025 at 2:16 PM Dagfinn Ilmari Mannsåker
<ilmari@ilmari.org> wrote:
> That's because encode_json has a prototype[1], which changes how the
> argument list is parsed: no longer just as a flat list of values like a
> normal function.  Specifically, it has a prototype of '$', which means
> it only takes one argument, which is evaluated in scalar context.  So
> the first example is a syntax error, but in the second example the
> parenthesised expression is the single argument.  Becuse it's in scalar
> context, the comma is actually the scalar comma operator, not the list
> element separator, so the return value is the right-hand side of the
> comma (just like in C), not the length of the would-be list.

ron-swanson-throws-away-computer.gif

Well, thank you for the explanation. I'll make that change.

--Jacob



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