]> granicus.if.org Git - postgresql/commit
Avoid marking buffer dirty when VACUUM has no work to do.
authorSimon Riggs <simon@2ndQuadrant.com>
Fri, 18 Nov 2011 16:06:53 +0000 (16:06 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Fri, 18 Nov 2011 16:06:53 +0000 (16:06 +0000)
commitc1458cc495ff800cd176a1c2e56d8b62680d9b71
treeb13653180e37885d81bfbdd838318506d742caf9
parentf6438f66226e37851e11a93edebae0198a875100
Avoid marking buffer dirty when VACUUM has no work to do.
When wal_level = 'hot_standby' we touched the last page of the
relation during a VACUUM, even if nothing else had happened.
That would alter the LSN of the last block and set the mtime
of the relation file unnecessarily. Noted by Thom Brown.
src/backend/access/nbtree/nbtpage.c