Remove redundant initialization of smgr pointer for relcache - Mailing list pgsql-hackers

From Jingtang Zhang
Subject Remove redundant initialization of smgr pointer for relcache
Date
Msg-id 468115EF-D287-4440-9E5B-CAF06B7EA86D@gmail.com
Whole thread Raw
List pgsql-hackers
Hi~

We seem to have a reduntant initialization of rd_smgr for a newly created
relcache entry. Commonly, the pointer is assigned as NULL after a relcache
is palloc'ed. But this one seems unnecessary because the rd_smgr has already
been initialized by earlier AllocateRelationDesc. Propose a patch for it.

--
Regards, Jingtang


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Move SLRU_PAGES_PER_SEGMENT to pg_config_manual.h
Next
From: Heikki Linnakangas
Date:
Subject: Re: Move SLRU_PAGES_PER_SEGMENT to pg_config_manual.h