From: Tom Lane <tgl@sss.pgh.pa.us>
To: guyren@icloud.com
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Is the Halloween problem an issue in Postgres
Date: Wed, 02 Dec 2020 15:48:05 -0500
Message-ID: <1673519.1606942085@sss.pgh.pa.us> (raw)
In-Reply-To: <756bd845-ebe1-4c45-88e8-0ab44bbc02b7@Spark>
References: <e1829b8d-4f7c-4ee0-8820-d09907a4a5f4@Spark>
<756bd845-ebe1-4c45-88e8-0ab44bbc02b7@Spark>
guyren@icloud.com writes:
> The Halloween problem is that it is a challenge for the database if you’re updating a field that is also in the WHERE clause of the same query.
> I just saw a presentation from someone about how in SQL Server he recommended writing changes to a temp table and then writing them to the table as being much more efficient.
That's nonsense as far as Postgres is concerned.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, guyren@icloud.com
Subject: Re: Is the Halloween problem an issue in Postgres
In-Reply-To: <1673519.1606942085@sss.pgh.pa.us>
References: <e1829b8d-4f7c-4ee0-8820-d09907a4a5f4@Spark> <756bd845-ebe1-4c45-88e8-0ab44bbc02b7@Spark> <1673519.1606942085@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox