Re: Very slow DELETEs with foreign keys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Very slow DELETEs with foreign keys
Дата
Msg-id 4386.1454947131@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Very slow DELETEs with foreign keys  (Thom Brown <thom@linux.com>)
Список pgsql-general
Thom Brown <thom@linux.com> writes:
> Yeah, there's no index on contacts.country, and that would certainly
> make the query acceptably quick, but I'm asking whether the
> non-indexed scenario is going about things the most efficient way,
> given what it has available to it.

[ shrug... ]  If you're up for nuking the entire existing foreign-key
infrastructure and starting over, you could think about doing things
some other way.  But you're not going to get to anyplace other than
"run a query for each deleted row" without a *lot* of work.

            regards, tom lane


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

Предыдущее
От: Nguyễn Trần Quốc Vinh
Дата:
Сообщение: Re: fast refresh materialized view
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: COALESCE requires NULL from scalar subquery has a type