projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
2b41de4
)
Remove redundant relam initialization
author
Álvaro Herrera
<
[email protected]
>
Wed, 27 Nov 2024 18:13:37 +0000
(19:13 +0100)
committer
Álvaro Herrera
<
[email protected]
>
Wed, 27 Nov 2024 18:15:14 +0000
(19:15 +0100)
This struct member is initialized again a few lines below in the same
function. This is cosmetic, so no back.
Reported-by: Jingtang Zhang <
[email protected]
>
Discussion: https://postgr.es/m/
AFF74506
-B925-46BB-B875-
CF5A946170EB
@gmail.com
src/backend/utils/cache/relcache.c
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/cache/relcache.c
b/src/backend/utils/cache/relcache.c
index 72cd808df70738764aae07de2b2f4925b91b124d..d0892cee24dbfaf550f1fb76a42a335f660043f9 100644
(file)
--- a/
src/backend/utils/cache/relcache.c
+++ b/
src/backend/utils/cache/relcache.c
@@
-1939,7
+1939,6
@@
formrdesc(const char *relationName, Oid relationReltype,
relation->rd_rel->relallvisible = 0;
relation->rd_rel->relkind = RELKIND_RELATION;
relation->rd_rel->relnatts = (int16) natts;
- relation->rd_rel->relam = HEAP_TABLE_AM_OID;
/*
* initialize attribute tuple form