Re: Using Expanded Objects other than Arrays from plpgsql

Поиск
Список
Период
Сортировка
От Michel Pelletier
Тема Re: Using Expanded Objects other than Arrays from plpgsql
Дата
Msg-id CACxu=vKxR_1RGrjppLDjnhRj4Sd-QEMeqt+2gPz0myK8kq6q0Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using Expanded Objects other than Arrays from plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Nov 1, 2024 at 3:20 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Michel Pelletier <pelletier.michel@gmail.com> writes:

Well, you shouldn't be using PERFORM.  Not only does it not do the
right thing, but it's not optimized for expanded objects at all:
they'll get flattened both on the way into the statement and on
the way out.  Try it with

     graph := set_element(graph, 1, 1, 1);
     RETURN nvals(graph);

Ah my bad, you mentioned that already and I missed it, here's the two backtraces with the assignment:

 

                        regards, tom lane

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