Re: WAL being written during SELECT * query

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL being written during SELECT * query
Date: 2017-04-10 14:49:57
Message-ID: 20170410104957.598063aa7afb8dfe8187f4ed@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> >> On Tue, Apr 4, 2017 at 9:46 AM, Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com>
> >> wrote:
> >> > Hi,
> >> > I have a very big table (10GB).
> >> > I noticed that many WAL segments are being written when elaborating read
> >> > only transactions like this:
> >> > select * from dati25600000000 where id >43000000 limit 1000000;
> >> > I don't understand why are there WAL writings during read only
> >> transactions.

These are hint bits. The mechanism and behavior are known and documented:
https://wiki.postgresql.org/wiki/Hint_Bits

--
Bill Moran <wmoran(at)potentialtech(dot)com>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Iliffe 2017-04-10 14:51:04 Re: Unable to connect to Postgresql
Previous Message John Iliffe 2017-04-10 14:38:09 Re: Unable to connect to Postgresql