På tirsdag 19. oktober 2021 kl. 07:58:46, skrev aditya desai <admad123@xxxxxxxxx>:
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 fromgk_staging g, transaction t,account awhereg.accountcodeis not null ANDg.accountcode::text <> '' ANDlength(g.accountcode)=13 ANDg.closeid::text=t.transactionid::text ANDsubsrting(g.accountcode::text,8)=a.mask_code::textBelow are system parameters.shared_buffers=3GBwork_mem=2GBeffective_cache_size=10GBmaintenance_work_mem=1GBmax_connections=250I 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
Andreas Joseph Krogh