Re: creating a subset DB efficiently ?

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: creating a subset DB efficiently ?
Дата
Msg-id 20240309213455.i2trc3sc4caxoqel@hjp.at
обсуждение исходный текст
Ответ на creating a subset DB efficiently ?  (David Gauthier <dfgpostgres@gmail.com>)
Список pgsql-general
On 2024-03-08 11:22:17 -0500, David Gauthier wrote:
> Related question...
> The "delete from par_tbl_a where project <> 'a' " is taking forever.

Have you checked whether all the FK columns have an index? Otherwise
checking for references means a full table scan which may take a long
time.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

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

Предыдущее
От: Steve Baldwin
Дата:
Сообщение: Re: Help diagnosing replication (copy) error
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Insert with Jsonb column hangs