pgsql: Use placeholders and not GUC names in error message (autovacuum) - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Use placeholders and not GUC names in error message (autovacuum)
Date
Msg-id E1weSj9-000kch-1M@gemulon.postgresql.org
Whole thread
List 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.pgdev@gmail.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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Change stat_lock.wait_time to double precision
Next
From: Michael Paquier
Date:
Subject: pgsql: Refactor pg_stat_get_lock() to use a helper function