Sv: Fwd: Query out of memory

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема Sv: Fwd: Query out of memory
Дата
Msg-id VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena
обсуждение исходный текст
Ответ на Fwd: Query out of memory  (aditya desai <admad123@gmail.com>)
Список pgsql-performance
På tirsdag 19. oktober 2021 kl. 07:58:46, skrev aditya desai <admad123@gmail.com>:
Sending to a performance group instead of PLPGSQL.
 
.
.
Hi,
I am running the below query. Table has 21 million records. I get an Out Of Memory error after a while.(from both pgadmin and psql). Can someone review DB parameters given below.
 
select t.*,g.column,a.column from
gk_staging g, transaction t,account a
where
g.accountcodeis not null AND
g.accountcode::text <> '' AND
length(g.accountcode)=13 AND
g.closeid::text=t.transactionid::text AND
subsrting(g.accountcode::text,8)=a.mask_code::text
 
Below are system parameters.
shared_buffers=3GB
work_mem=2GB
effective_cache_size=10GB
maintenance_work_mem=1GB
max_connections=250
 
I am unable to paste explain plan here due to security concerns.
 
You have not provided schema, explain-output nor the error-message.
Without this it's pretty much guess-work...
 
--
Andreas Joseph Krogh

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

Предыдущее
От: aditya desai
Дата:
Сообщение: Re: Query out of memory
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Query out of memory