Re: Is the Halloween problem an issue in Postgres

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Is the Halloween problem an issue in Postgres
Date: 2020-12-02 22:02:07
Message-ID: 5f7e3d0e-52da-c5e4-72d6-edcff340d710@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

guyren(at)icloud(dot)com schrieb am 02.12.2020 um 21:27:
> 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.

It sounds strange to me, that this _is_ actually a problem.

Why exactly is that a problem in SQL Server?
And what are the consequences if you do it nevertheless.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-12-02 22:08:41 Re: Is the Halloween problem an issue in Postgres
Previous Message Tom Lane 2020-12-02 20:48:05 Re: Is the Halloween problem an issue in Postgres