Re: relpages in pg_class

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: relpages in pg_class
Дата
Msg-id Yv/hkEf1fFDIGl6m@momjian.us
обсуждение исходный текст
Ответ на Re: relpages in pg_class  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: relpages in pg_class  (Shangzi Xie <shangzi.x@columbia.edu>)
Список pgsql-docs
On Fri, Aug 19, 2022 at 11:25:52AM -0700, Peter Geoghegan wrote:
> On Fri, Aug 19, 2022 at 9:40 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Yeah, we use "blocks" and "pages" interchangeably, which is something
> > I don't feel a need to change; but evidently the OP didn't realize that.
> > This is a job for the glossary, perhaps?
> 
> I think that they're synonyms that can often (but not always) be used
> interchangeably. I *think* that this understanding is shared by other
> people, though I should check. Here goes:
> 
> To me, "block" emphasizes on-disk/relfilenode storage. Something that
> exists at a particular physical offset in a particular file (a
> BlockNumber + relfilenode). On the other hand, the term "page"
> emphasizes the in-memory format, and the indirection provided by the
> bufpage.c slotted page format (i.e. line pointer array indirection).

Yes, I have heard the block-disk, page-memory explanation before.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Indecision is a decision.  Inaction is an action.  Mark Batterson




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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: relpages in pg_class
Следующее
От: PG Doc comments form
Дата:
Сообщение: documentation error