Fix smgrtruncate code comment.
Kirill Reshke <reshkekirill@gmail.com>
From: Kirill Reshke <reshkekirill@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-07-29T10:50:27Z
Lists: pgsql-hackers
Attachments
- v1-0001-Fix-smgrtruncate-code-comment.patch (application/octet-stream) patch v1-0001
Today I was busy rebasing my Greenplum-related Extendable SMGR patches on Cloudberry, and I faced some conflicts. While resolving them I noticed code & comments inconsistency in smgr.c in smgrtruncate function, which tracks down to c5315f4f44843c20ada876fdb0d0828795dfbdf5. In this commit, smgr_fsm_nblocks & smgr_vm_nblocks fields were removed, however comments were not fixed accordingly. So i suggest to fix this, PFA
Commits
-
Fix outdated comment in smgrtruncate()
- 19de089cdc23 18.0 landed
-
Cache smgrnblocks() results in recovery.
- c5315f4f4484 14.0 cited