pgsql: Don't bother to lock bufmgr partitions in pg_buffercache.
pgsql: Don't bother to lock bufmgr partitions in pg_buffercache.
От:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Дата:
Don't bother to lock bufmgr partitions in pg_buffercache. That makes the view a lot less disruptive to use on a production system. Without the locks, you don't get a consistent snapshot across all buffers, but that's OK. It wasn't a very useful guarantee in practice. Ivan Kartyshov, reviewed by Tomas Vondra and Robert Haas. Discusssion: Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6e654546fb61f62cc982d0c8f62241b3b30e7ef8 Modified Files -------------- contrib/pg_buffercache/pg_buffercache_pages.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-)