Does PostgreSQL cache all columns of a table after SELECT?

Поиск
Список
Период
Сортировка
От Tim Schwenke
Тема Does PostgreSQL cache all columns of a table after SELECT?
Дата
Msg-id 1888b7bb7fa.112313046679561.2788161417267896332@trallnag.com
обсуждение исходный текст
Ответы Re: Does PostgreSQL cache all columns of a table after SELECT?  (William Alves Da Silva <william_silva@unochapeco.edu.br>)
Re: Does PostgreSQL cache all columns of a table after SELECT?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Does PostgreSQL cache all columns of a table after SELECT?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-novice
Hello,

I have the following table with the following columns:

large_a: text (few dozen characters up to a few hundred)
large_b: text (few dozen characters up to a few hundred)

The table has several million rows. The DB is running on a large machine.

I perform the following query:

select large_a from table;

The first query takes a few minutes. Afterwards I see that the cache in memory has grown. Next query only takes a few
seconds.

What I want to know:

Does the cache also contain large_b? Or is only large_a cached? Assumption is that memory is large enough to fit
everything.




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

Предыдущее
От: sudham saka
Дата:
Сообщение: Re: Training courses on PostgreSQL
Следующее
От: William Alves Da Silva
Дата:
Сообщение: Re: Does PostgreSQL cache all columns of a table after SELECT?