Re: More efficient RI checks - take 2

Поиск
Список
Период
Сортировка
От Antonin Houska
Тема Re: More efficient RI checks - take 2
Дата
Msg-id 65467.1591370203@antos
обсуждение исходный текст
Ответ на More efficient RI checks - take 2  (Antonin Houska <ah@cybertec.at>)
Ответы Re: More efficient RI checks - take 2  (Andres Freund <andres@anarazel.de>)
Re: More efficient RI checks - take 2  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
Antonin Houska <ah@cybertec.at> wrote:

> In general, the checks are significantly faster if there are many rows to
> process, and a bit slower when we only need to check a single row.

Attached is a new version that uses the existing simple queries if there's
only one row to check. SPI is used for both single-row and bulk checks - as
discussed in this thread, it can perhaps be replaced with a different approach
if appears to be beneficial, at least for the single-row checks.

I think using a separate query for the single-row check is more practicable
than convincing the planner that the bulk-check query should only check a
single row. So this patch version tries to show what it'd look like.

-- 
Antonin Houska
Web: https://www.cybertec-postgresql.com


Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: minor doc fix - garbage in example of result of unnest
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: WIP: WAL prefetch (another approach)