Minor pg_amcheck fixes spotted while reading code

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Minor pg_amcheck fixes spotted while reading code
Date: 2021-08-20 18:19:56
Message-ID: 050F2CB9-F6D1-4C3F-82D7-20352E506C3A@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When perusing the pg_amcheck code the other day for the recently pushed fixes I
found two small things that seem worth fixing: The help function progname
parameter shadows the global variable of the same name, which no doubt will
make static analyzers complain so we might as well fix that; and there is a
tiny typo in the test stanza.

Both fixed in the attached.

--
Daniel Gustafsson https://vmware.com/

Attachment Content-Type Size
0001-Fix-variable-shadowing.patch application/octet-stream 2.0 KB
0002-pg_amcheck-test-typofix.patch application/octet-stream 918 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2021-08-20 18:20:50 Re: Use extended statistics to estimate (Var op Var) clauses
Previous Message Robert Haas 2021-08-20 18:19:21 Re: archive status ".ready" files may be created too early