Re: select statements have many shared_blks_dirtied and written

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: select statements have many shared_blks_dirtied and written
Дата
Msg-id 645a24ea6ca6055a0f81ea5927ba0a08e15157c2.camel@cybertec.at
обсуждение исходный текст
Ответ на select statements have many shared_blks_dirtied and written  (James Pang <jamespang886@gmail.com>)
Список pgsql-admin
On Tue, 2024-02-20 at 16:20 +0800, James Pang wrote:
> We have several sql "select ... from ... where  ..." ,from pg_stat_statements,
> we found the select sql has many shared_blks_dirtied, shared_blks_written.
> is it by  "hint bits" updates ?  when checkpoint just completed, we saw many
> wal_fpi , wal_bytes with this select sql too.

Yes, that are probably hint bits.

One way to avoid that is to VACUUM the table after a bulk load, that
will set hint bits.

Yours,
Laurenz Albe



В списке pgsql-admin по дате отправления:

Предыдущее
От: James Pang
Дата:
Сообщение: select statements have many shared_blks_dirtied and written
Следующее
От: Rajesh Kumar
Дата:
Сообщение: Re: Wraparound