]> granicus.if.org Git - postgresql/commit
Send only one FORGET_RELATION_FSYNC request when dropping a relation.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Jul 2012 17:07:41 +0000 (13:07 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Jul 2012 17:07:41 +0000 (13:07 -0400)
commit2bc30516c728fddf791ec508056a9c92c65025af
treef1faa1a9d99c34f566a5695b5de4416bdfa0eb67
parent79c49131fa59069c70bda107c082199e9f8bd880
Send only one FORGET_RELATION_FSYNC request when dropping a relation.

We were sending one per fork, but a little bit of refactoring allows us
to send just one request with forknum == InvalidForkNumber.  This not only
reduces pressure on the shared-memory request queue, but saves repeated
traversals of the checkpointer's hash table.
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c