pgsql: Narrow the scope of a local variable. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Narrow the scope of a local variable.
Date
Msg-id E1l1bYJ-0003HR-Jk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Narrow the scope of a local variable.

This is better style and more symmetrical with the other if-branch.
This likely should have been included in 9de77b545 (which created
the opportunity), but it was overlooked.

Japin Li

Discussion: https://postgr.es/m/MEYP282MB16699FA4A7CD57EB250E871FB6A40@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3fd80c728dc36fbd250ca3019c2f5fa2567f1a75

Modified Files
--------------
src/backend/replication/logical/proto.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Add bytea equivalents of ltrim() and rtrim().
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid crash with WHERE CURRENT OF and a custom scan plan.