Re: Best way to check if a table is empty

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Best way to check if a table is empty
Дата
Msg-id CAKFQuwbXZ+9tY=graDAWfFaxeOOpdOoQ+JtjmaqWCWfZc-PF4g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Best way to check if a table is empty  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Best way to check if a table is empty
Список pgsql-general
On Sunday, March 23, 2025, David G. Johnston <david.g.johnston@gmail.com> wrote:

Maybe IOS helps though I do wonder whether a sequential scan skips over known all-dead pages making that relative benefit go away.

Well, no, since it tracks known visible, not known non-visible, though for something like a fast exists test with no where clause if the VM had any 1 bits the answer to the exists would be yes.  No idea if we take that shortcut.

David J.

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