Re: Does PostgreSQL cache all columns of a table after SELECT?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tim Schwenke <tim(at)trallnag(dot)com>
Cc: Pgsql Novice <pgsql-novice(at)lists(dot)postgresql(dot)org>
Subject: Re: Does PostgreSQL cache all columns of a table after SELECT?
Date: 2023-06-05 14:26:08
Message-ID: CAKFQuwa-KCHhYi5Z5LKBK+H2H84G7S-dZVqZy-AH3gRUanexnA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Jun 5, 2023, 06:17 Tim Schwenke <tim(at)trallnag(dot)com> wrote:

> Hello David,
>
> from what I understand, in PostgreSQL, tables are stored in one or more
> files called segments. There is no separation by columns.
>
> https://www.postgresql.org/docs/8.1/storage.html
>
> This means if I select a single column from a table the first time, the
> full file / segment is read and put into page cache if there is enough
> space.

Pages are subsegment.

You may also wish to take care to notice the version of documentation pages
you look at and reference. 8.1 is long past its expiration date.

David J.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tim Schwenke 2023-06-05 15:15:24 Re: Does PostgreSQL cache all columns of a table after SELECT?
Previous Message Laurenz Albe 2023-06-05 13:58:38 Re: Does PostgreSQL cache all columns of a table after SELECT?