Question regarding writes when locking rows - Mailing list pgsql-performance

From Martin Querleu
Subject Question regarding writes when locking rows
Date
Msg-id CAG0iYdTixdbbsKWDHhzS8ixE5O8bX7m=3PY0THSpv0Wn_cKkAQ@mail.gmail.com
Whole thread Raw
List pgsql-performance
Hello all

We are developping a software that has a lot of concurrent transactions so we use a lot row locking (SELECT.. FOR SHARE/UPDATE) and we are experiencing high disk write rates on large read queries.

As I understand the tuple is updated every time a lock is put on it (then page becomes dirty and at some point is written to the disk)
Is there any way to prevent the writing to the disk since this information is temporary? Is there any system for caching the rows locks in RAM in PostgreSQL? Is increasing shared_buffers a solution since it contains the cached rows or is it only a read-purpose caching?

Thanks in advance for your knowledge on the subject

Have a nice day
Martin

pgsql-performance by date:

Previous
From: Jeff Janes
Date:
Subject: Re: slow delete
Next
From: Les
Date:
Subject: Slow query, possibly not using index