pgsql: Use placeholders and not GUC names in error message (autovacuum)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use placeholders and not GUC names in error message (autovacuum)
Date: 2026-06-30 07:17:51
Message-ID: E1weSj9-000kch-1M@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use placeholders and not GUC names in error message (autovacuum)

A placeholder %s is now used instead of the GUC names in the error
string of this routine. This is going to be useful for a follow-up
patch, where we will be able to reuse the same string, hence reducing
the translation work.

Based on a suggestion by me.

Author: Baji Shaik <baji(dot)pgdev(at)gmail(dot)com>
Discussion: https://postgr.es/m/ajnhfw84reaXgjfO@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7905416eef9b2ad2ff8783330d830ef2c28bef2a

Modified Files
--------------
src/backend/postmaster/autovacuum.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-06-30 07:30:19 pgsql: Refactor pg_stat_get_lock() to use a helper function
Previous Message Michael Paquier 2026-06-30 03:48:14 pgsql: Change stat_lock.wait_time to double precision