Re: [Proposal] Level4 Warnings show many shadow vars
Mark Dilger <hornschnorter@gmail.com>
From: Mark Dilger <hornschnorter@gmail.com>
To: Ranier Vilela <ranier_gyn@hotmail.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-12-09T04:50:41Z
Lists: pgsql-hackers
Attachments
- unshadow.checkPoint.patch.1 (text/plain)
- unshadow.connection.patch.1 (text/plain)
- unshadow.RedoRecPtr.patch.1 (text/plain)
- unshadow.synchronous_commit.patch.1 (text/plain)
- unshadow.wal_segment_size.patch.1 (text/plain)
- unshadow.wrconn.patch.1 (text/plain)
On 12/8/19 10:25 AM, Mark Dilger wrote: > I was > still expecting multiple patches, perhaps named along the > lines of: > > unshadow.RedoRecPtr.patch.1 > unshadow.wal_segment_size.patch.1 > unshadow.synchronous_commit.patch.1 > unshadow.wrconn.patch.1 > unshadow.progname.patch.1 > unshadow.am_syslogger.patch.1 > unshadow.days.patch.1 > unshadow.months.patch.1 > > etc. I'm uncomfortable giving you negative feedback of this > sort, since I think you are working hard to improve postgres > and I really appreciate it, so later tonight I'll try to come > back, split your patch for you as described, add an entry to > the commitfest if you haven't already, and mark myself as a > reviewer. To start off, I've taken just six of the 22 or so variables that you renamed and created patches for them. I'm not endorsing these in any way. I chose these mostly based on which ones showed up first in your patch file, with one exception. I stopped when I got to 'progname' => 'prog_name' as the whole exercise was getting too absurd even for me. That clearly looks like one where the structure of the code needs to be reconsidered, rather than just renaming stuff. I'll create the commitfest entry based on this email once this has been sent. Patches attached. -- Mark Dilger
Commits
-
Remove shadow variables linked to RedoRecPtr in xlog.c
- 668365014d7b 11.7 landed
- 35c01529b8c9 12.2 landed
- 70116493a8e0 13.0 landed
-
Fix calculation for WAL segment recycling and removal
- d9fadbf13103 12.0 cited