Re: Small refactoring around vacuum_open_relation - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Small refactoring around vacuum_open_relation
Date
Msg-id 202501091045.pzuv3plvqcr4@alvherre.pgsql
Whole thread Raw
In response to Re: Small refactoring around vacuum_open_relation  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Responses Re: Small refactoring around vacuum_open_relation
List pgsql-hackers
On 2025-Jan-09, Ashutosh Bapat wrote:

> Sorry for reviewing late. The patch looks ok.

Dunno what others think, this seems useless churn to me.

> I found some more
> static const struct
> {
> LOCKMODE hwlock;
> int lockstatus;
> int updstatus;
> }
> 
> tupleLockExtraInfo[MaxLockTupleMode + 1] =
> 
> hwlock should be hwlockmode?
> 
> In vacuum_rel(), get_relation_info(), LOCK_PRINT(), pg_lock_status(),
> toast_close_indexes(), toast_get_valid_index(),
> toast_open_indexestoast_open_indexes().

Eh, and right here it is when things snowball and now the whole tree is
under duress because of a consistency argument of dubious value.

Heck, I see even fixing typos as problematic, because there comes the
time when somebody needs to make a backpatch and they find there's a
conflict to fix because of a typo fix.  IMO if you really want to fix
typos, then the committer should apply such fixes to all live branches
where they apply, so that any later backpatching is not bothered by it.

If you're patching the source code for other reasons, then by all means
fix inconsistencies, typos, etc all you want.  Otherwise, please leave
things alone _or_ backpatch such fixes.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"El que vive para el futuro es un iluso, y el que vive para el pasado,
un imbécil" (Luis Adler, "Los tripulantes de la noche")



pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Small refactoring around vacuum_open_relation
Next
From: Vladlen Popolitov
Date:
Subject: Re: Windows meson build