]> granicus.if.org Git - postgresql/commit
Avoid re-checking for visibility map extension too frequently.
authorRobert Haas <rhaas@postgresql.org>
Thu, 2 Feb 2012 01:35:42 +0000 (20:35 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 2 Feb 2012 01:35:42 +0000 (20:35 -0500)
commitb4e0741727685443657b55932da0c06f028fbc00
treef1a7b6150b071b9f1a4825406de90b4fcb6f7411
parent8a02339e9ba3f2f962c5967be8c5d053a1fa39d2
Avoid re-checking for visibility map extension too frequently.

When testing bits (but not when setting or clearing them), we now
won't check whether the map has been extended.  This significantly
improves performance in the case where the visibility map doesn't
exist yet, by avoiding an extra system call per tuple.  To make
sure backends notice eventually, send an smgr inval on VM extension.

Dean Rasheed, with minor modifications by me.
src/backend/access/heap/visibilitymap.c