Re: doc review for v13
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, James Coleman <jtc331@gmail.com>, pgsql-hackers@lists.postgresql.org, Alexander Korotkov <a.korotkov@postgrespro.ru>, Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Date: 2020-06-12T07:48:32Z
Lists: pgsql-hackers
On Thu, Jun 11, 2020 at 09:37:09PM -0500, Justin Pryzby wrote: > Some new bits, > And some old ones. I was looking at this patch set, and 0005 has attracted my attention here: > --- a/src/backend/utils/cache/relcache.c > +++ b/src/backend/utils/cache/relcache.c > @@ -4240,7 +4240,6 @@ AttrDefaultFetch(Relation relation) > HeapTuple htup; > Datum val; > bool isnull; > - int found; > int i; Since 16828d5, this variable is indeed unused. Now, the same commit has removed the following code: - if (found != ndef) - elog(WARNING, "%d attrdef record(s) missing for rel %s", - ndef - found, RelationGetRelationName(relation)); Should we actually keep this variable and have this sanity check in place? It seems to me that it would be good to have that, so as we can make sure that the number of default attributes cached matches with the number of defaults actually found when scanning each attribute. Adding in CC Andrew as the author of 16828d5 for more input. -- Michael
Commits
-
Copy editing: fix a bunch of misspellings and poor wording.
- e62c5ea22c12 13.0 landed
- 9436041ed848 14.0 landed
-
doc: Fix some grammar and inconsistencies
- a4c0dbc447c7 9.6.20 landed
- d56d33052183 10.15 landed
- 447c1cb2f67f 11.10 landed
- 25ff747721a5 12.5 landed
- b3d89b7a8896 13.0 landed
- aad546bd0a51 14.0 landed
-
Fix some comments referring to past features
- 7a3543c2ea23 14.0 landed
-
Fix typos and some format mistakes in comments
- aaf8c990502f 14.0 landed
-
Fix some typos
- 641b76d9d12f 13.0 landed
-
Fix collection of typos and grammar mistakes in the tree, volume 2
- 8128b0c152a6 13.0 landed
-
Rename pg_validatebackup to pg_verifybackup.
- dbc60c5593f2 13.0 cited
-
Fix collection of typos and grammar mistakes in the tree
- dd0f37eccecc 13.0 landed