public inbox for [email protected]
help / color / mirror / Atom feedFrom: Marc SCHAEFER <[email protected]>
To: [email protected]
Subject: Naive question about multithreading/multicore
Date: Sat, 12 Oct 2024 19:30:58 +0200
Message-ID: <[email protected]> (raw)
Hello,
on a machine where starting two processes:
perl -e 'while (1) { ; }'
I see two processed at 100% CPU, which is expected (with top).
Now, if I do:
template1=> SELECT COUNT(*) FROM pg_class a, pg_class b, pg_class c;
I see only one 100% CPU PostgreSQL process.
I read that while PostgreSQL connetions lead to a UNIX process model,
which is better for isolation, some operations have been parallelized
and can use more than one core/thread.
Maybe this specific case was not (yet?) parallelized, or should it
be and thus something is issing in my configuration?
Thank you.
PS: psql (13.16 (Debian 13.16-0+deb11u1))
view thread (3+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Naive question about multithreading/multicore
In-Reply-To: <[email protected]>
* 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