Metraipolis › archive › dc_2b364980f3e5
Halloween Problem — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Halloween_Problem
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-06T17:09:17.714Z
- SHA-256 of the archived text
993a8850b4a4840337cc9b21a94b69b44c1f53bb930ed2537b2f9da0bc7e99d5- Stable URL of this page
https://metraipolis.com/documento/dc_2b364980f3e5
How to cite
Halloween Problem — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Halloween_Problem (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_2b364980f3e5 (Metraipolis archive dc_2b364980f3e5, sha256 993a8850b4a4840337cc9b21a94b69b44c1f53bb930ed2537b2f9da0bc7e99d5)
BibTeX
@misc{dc2b364980f3e5,
title = {Halloween Problem — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Halloween_Problem},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_2b364980f3e5; sha256 993a8850b4a4840337cc9b21a94b69b44c1f53bb930ed2537b2f9da0bc7e99d5},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Halloween_Problem. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In computing, the Halloween Problem refers to a phenomenon in databases in which an update operation causes a change in the physical location of a row, potentially allowing the row to be visited again later in the same update operation. This could even cause an infinite loop in some cases where updates continually place the updated record ahead of the scan performing the update operation. The potential for this database error was first discovered by Don Chamberlin, Pat Selinger, and Morton Astrahan in the mid-1970s, on Halloween day, while working on query optimization. They wrote a SQL query supposed to give a ten percent raise to every employee who earned less than $25,000. This query would run successfully, with no errors, but when finished all the employees in the database earned at least $25,000, because it kept giving them a raise until they reached that level. The expectation was that the query would iterate over each of the employee records with a salary less than $25,000 precisely once. In fact, because even updated records were visible to the query execution engine and so continued to match the query's criteria, salary records were matching multiple times and each time being given a 10% raise until they were all greater than $25,000. Contrary to what some believe, the name is not descriptive of the nature of the problem but rather was given due to the day it was discovered on. As recounted by Don Chamberlin: Pat and Morton discovered this problem on Halloween... I remember they came into my office and said, "Chamberlin, look at this. We have to make sure that when the optimizer is making a plan for processing an update, it doesn't use an index that is based on the field that is being updated. How are we going to do that?" It happened to be on a Friday, and we said, "Listen, we are not going to be able to solve this problem this afternoon. Let's just give it a name. We'll call it the Halloween Problem and we'll work on it next week." And it turns out it has been called that ever since. Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; categoria «Databases»). Fonte: Wikipedia in inglese, voce «Halloween Problem» — https://en.wikipedia.org/wiki/Halloween_Problem Wikidata Q1571835 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q1571835 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Halloween_Problem?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1365707918, consultata il 2026-10-06T15:35:12.055Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 20a85e766bf4a96c5b03145db9df99ea85d267cacda6054b32e9cec1a989d242