agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Andreas Joseph Krogh <andreas@visena.com>
To: aditya desai <admad123@gmail.com>
Cc: Pgsql Performance <pgsql-performance@lists.postgresql.org>
Subject: Sv: Fwd: Query out of memory
Date: Tue, 19 Oct 2021 13:08:03 +0200 (CEST)
Message-ID: <VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena> (raw)
In-Reply-To: <CAN0SRDFqJRjuSxNUrTvCQwKuhGv8r5rUn9WnX65kGSsTSxhoCw@mail.gmail.com>
References: <CAN0SRDHDte88-v4=uhxH1FWU0nt3xBJGTe5hTGj4KvKTtVRDtA@mail.gmail.com>
<CAN0SRDFqJRjuSxNUrTvCQwKuhGv8r5rUn9WnX65kGSsTSxhoCw@mail.gmail.com>
På tirsdag 19. oktober 2021 kl. 07:58:46, skrev aditya desai <
admad123@gmail.com <mailto: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
Message-ID: <VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena>
Permalink: ../VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena/
Also on: postgresql.org/message-id/VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreas@visena.com, admad123@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Sv: Fwd: Query out of memory
In-Reply-To: <VisenaEmail.53.2208dc1e4c778c76.17c983b17bb@tc7-visena>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox