nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot() - Mailing list pgsql-hackers

From Chao Li
Subject nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot()
Date
Msg-id CAEoWx2nisjqs4iC9o4Hu7-Ab767=cMZZzmhBGb8SaQtMMmVqPQ@mail.gmail.com
Whole thread Raw
Responses Re: nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot()
List pgsql-hackers
Hi Hackers,

I noticed this while reviewing [1]. _bt_gettrueroot() performs the same metapage checks as _bt_getmeta(), so using _bt_getmeta() here removes the duplicated code.

Build passed without warning and "make check" passed.


Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Extended Statistics set/restore/clear functions.
Next
From: Andrey Borodin
Date:
Subject: Re: GIN pageinspect support for entry tree and posting tree