pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix argument handling in pg_indexam_progress_phasename()
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/66042bd3ebd4a7d5b614bf7435f29a8cac06fea9

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2dc899f780f4751b83e2a7673029effa1764a83a

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/58998c33d19932670a2191a569fe9fa2e16db1d6

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8af1a12c9ea0e19d11c285fc80a9e434069a1a91

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6f126b32893354561b271f783531c3d6a2ebce0e

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_15_STABLE

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

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix argument handling in pg_indexam_progress_phasename()
@ 2026-10-22 05:39 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2026-10-22 05:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix argument handling in pg_indexam_progress_phasename()

The function is declared in pg_proc.dat a bigint as its second input
argument, but the function's code used PG_GETARG_INT32().

This is an issue in 32-bit architectures in stable branches (up to v18)
where bigint is still passed by reference, reporting bogus numbers.
Since 2a600a93c7b (v19 and HEAD), this is less of a problem as Datums
became 8-byte wide everywhere.

Oversight in ab0dfc961b6.

Author: Markos Fountoulakis <markos@planetscale.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/e791bbb7-af3a-4a91-a5bb-c744e5c3ef54@planetscale.com
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5259332a691c5864db81c35a93629f61974a1c34

Modified Files
--------------
src/backend/utils/adt/amutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2026-10-22 05:39 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>
2026-10-22 05:39 pgsql: Fix argument handling in pg_indexam_progress_phasename() Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox