pgsql: Send only one FORGET_RELATION_FSYNC request when dropping a rela - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Send only one FORGET_RELATION_FSYNC request when dropping a rela
Date
Msg-id E1SruCi-0003cz-3F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2bc30516c728fddf791ec508056a9c92c65025af

Modified Files
--------------
src/backend/storage/smgr/md.c   |   39 ++++++++++++++++++++++++++++++++-------
src/backend/storage/smgr/smgr.c |    3 +--
2 files changed, 33 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Refactor the way code is shared between some range type function
Next
From: Tom Lane
Date:
Subject: pgsql: Send only one FORGET_RELATION_FSYNC request when dropping a rela