public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Tim Schwenke <[email protected]>
Cc: Pgsql Novice <[email protected]>
Subject: Re: Does PostgreSQL cache all columns of a table after SELECT?
Date: Mon, 5 Jun 2023 07:26:08 -0700
Message-ID: <CAKFQuwa-KCHhYi5Z5LKBK+H2H84G7S-dZVqZy-AH3gRUanexnA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<CAKFQuwamUDxtmA3G4mUP1y4DvntoJ4EA4o02465dfiRO3O9rBQ@mail.gmail.com>
	<[email protected]>

On Mon, Jun 5, 2023, 06:17 Tim Schwenke <[email protected]> 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.


view thread (9+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Does PostgreSQL cache all columns of a table after SELECT?
  In-Reply-To: <CAKFQuwa-KCHhYi5Z5LKBK+H2H84G7S-dZVqZy-AH3gRUanexnA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox