pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Is the Halloween problem an issue in Postgres
Date: Wed, 2 Dec 2020 14:08:41 -0800
Message-ID: <869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com> (raw)
In-Reply-To: <5f7e3d0e-52da-c5e4-72d6-edcff340d710@gmx.net>
References: <e1829b8d-4f7c-4ee0-8820-d09907a4a5f4@Spark>
	<756bd845-ebe1-4c45-88e8-0ab44bbc02b7@Spark>
	<5f7e3d0e-52da-c5e4-72d6-edcff340d710@gmx.net>

On 12/2/20 2:02 PM, Thomas Kellerer wrote:
> guyren@icloud.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?

Yeah that was a new one to me. A quick search found:

https://www.sqlshack.com/the-halloween-problem-in-sql-server-and-suggested-solutions/

> And what are the consequences if you do it nevertheless.
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com>
Permalink:  ../869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com/
Also on:    postgresql.org/message-id/869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com

 · 

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 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: adrian.klaver@aklaver.com, shammat@gmx.net
  Subject: Re: Is the Halloween problem an issue in Postgres
  In-Reply-To: <869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com>
  References: <e1829b8d-4f7c-4ee0-8820-d09907a4a5f4@Spark> <756bd845-ebe1-4c45-88e8-0ab44bbc02b7@Spark> <5f7e3d0e-52da-c5e4-72d6-edcff340d710@gmx.net> <869172f6-9114-e759-79ba-eb17f1c5082c@aklaver.com>

* 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