pgsql: Rename argument in pg_get_process_memory_contexts().

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

pgsql: Rename argument in pg_get_process_memory_contexts().

От:
Daniel Gustafsson <dgustafsson@postgresql.org>
Дата:
Rename argument in pg_get_process_memory_contexts().

During development the third argument to pg_get_process_memory_contexts
was a retry count, but it was changed to a timeout instead.  The param
name was accidentally left in pg_proc.dat though.  Fix by renaming to
the correct parameter name.

Author: Fujii Masao 
Reviewed-by: Daniel Gustafsson 
Discussion: https://postgr.es/m/3eb40b3e-45c7-426a-b7f8-81f7d05a9b53@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c57971034e69ca5705ac2be893a80ea82aca978b

Modified Files
--------------
src/include/catalog/pg_proc.dat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Re: pgsql: Rename argument in pg_get_process_memory_contexts().

От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Wed, 9 Apr 2025 at 09:22, Daniel Gustafsson
 wrote:
> Rename argument in pg_get_process_memory_contexts().

> src/include/catalog/pg_proc.dat | 2 +-

I think this should have done a catversion bump.

I suspect we'll get one soon enough, but you never know...

David


Re: pgsql: Rename argument in pg_get_process_memory_contexts().

От:
Michael Paquier <michael@paquier.xyz>
Дата:
Вложения:
On Wed, Apr 09, 2025 at 12:49:52PM +1200, David Rowley wrote:
> On Wed, 9 Apr 2025 at 09:22, Daniel Gustafsson
>  wrote:
> > Rename argument in pg_get_process_memory_contexts().
> 
> > src/include/catalog/pg_proc.dat | 2 +-
> 
> I think this should have done a catversion bump.

Yes, the catversion should be bumped for an attribute rename in a
function.
--
Michael

Re: pgsql: Rename argument in pg_get_process_memory_contexts().

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 9 Apr 2025, at 06:02, Michael Paquier  wrote:
> 
> On Wed, Apr 09, 2025 at 12:49:52PM +1200, David Rowley wrote:
>> On Wed, 9 Apr 2025 at 09:22, Daniel Gustafsson
>>  wrote:
>>> Rename argument in pg_get_process_memory_contexts().
>> 
>>> src/include/catalog/pg_proc.dat | 2 +-
>> 
>> I think this should have done a catversion bump.
> 
> Yes, the catversion should be bumped for an attribute rename in a
> function.

Agreed, sorry about that, will fix.

--
Daniel Gustafsson



FAQ