Use <unnamed> for name of unnamed portal's memory context

Поиск
Список
Период
Сортировка
Искать

Use <unnamed> for name of unnamed portal's memory context

От:
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Дата:
Вложения:
I propose the attached little patch to set the name of the memory 
context of an unnamed portal to "" instead of just an empty 
string.  Otherwise the debug memory context dump looks a little 
confusing.  We use this convention elsewhere for making unnamed 
statements etc. more clearly visible.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Re: Use <unnamed> for name of unnamed portal's memory context

От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:


so 5. 9. 2020 v 8:14 odesílatel Peter Eisentraut <peter.eisentraut@2ndquadrant.com> napsal:
I propose the attached little patch to set the name of the memory
context of an unnamed portal to "<unnamed>" instead of just an empty
string.  Otherwise the debug memory context dump looks a little
confusing.  We use this convention elsewhere for making unnamed
statements etc. more clearly visible.

+1

Pavel

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Re: Use <unnamed> for name of unnamed portal's memory context

От:
Julien Rouhaud <rjuju123@gmail.com>
Дата:
On Sat, Sep 5, 2020 at 8:25 AM Pavel Stehule  wrote:
>
> so 5. 9. 2020 v 8:14 odesílatel Peter Eisentraut  napsal:
>>
>> I propose the attached little patch to set the name of the memory
>> context of an unnamed portal to "" instead of just an empty
>> string.  Otherwise the debug memory context dump looks a little
>> confusing.  We use this convention elsewhere for making unnamed
>> statements etc. more clearly visible.
>
>
> +1

+1 too, and obviously patch looks good.


Re: Use <unnamed> for name of unnamed portal's memory context

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Julien Rouhaud  writes:
> +1 too, and obviously patch looks good.

The adjacent comment needs updating.

			regards, tom lane


Re: Use <unnamed> for name of unnamed portal's memory context

От:
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Дата:
On 2020-09-05 17:10, Tom Lane wrote:
> Julien Rouhaud  writes:
>> +1 too, and obviously patch looks good.
> 
> The adjacent comment needs updating.

committed with that change

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


FAQ