Re: Query hangs (and then timeout) after using COPY to import data

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: Query hangs (and then timeout) after using COPY to import data
Дата
Msg-id CANzqJaANOyfYP-hdwRbT6aLUVL=jBTWmVHo18y_8cuh92hm_zQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query hangs (and then timeout) after using COPY to import data  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Sun, Feb 11, 2024 at 4:41 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 2/11/24 13:37, steott@gmail.com wrote:
[snip] 
>
> The same query, executed from pgAdmin, returns the result in less than a
> second (even if it’s executed while the query from my app is running).
>
> (actually the result are 0 record, but it’s correct: the query it’s just
> a validation that there are no records in that query)
[snip] 
> Do you have any suggestions to solve this problem?
>

Run ANALYZE on the tables/database.
 
If ANALYZE was the cure, why does it successfully run from PgAdmin?

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

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: How to do faster DML
Следующее
От:
Дата:
Сообщение: RE: Query hangs (and then timeout) after using COPY to import data