Re: using index to speedup add not null constraints to a table
| От | Álvaro Herrera |
|---|---|
| Тема | Re: using index to speedup add not null constraints to a table |
| Дата | |
| Msg-id | 202601311716.jeczqdjsmh57@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: using index to speedup add not null constraints to a table (jian he <jian.universality@gmail.com>) |
| Ответы |
Re: using index to speedup add not null constraints to a table
|
| Список | pgsql-hackers |
On 2026-Jan-16, jian he wrote: > In this case, scanning the t3_copy_idx index to check these four NOT NULL > constraints is actually slower than a full table scan. > > Therefore, I further restricted the use of the index-scan mechanism for fast NOT > NULL verification to scenarios where the attribute being checked is the leading > column of the index. Makes sense. > I have not yet addressed all of your other comments, as this > represents a more of a > major change. Therefore, I am submitting the attached patch first. OK, this means we're still waiting then. Please do see my v8 patch. It contained other cleanups as well. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "La gente vulgar sólo piensa en pasar el tiempo; el que tiene talento, en aprovecharlo"
В списке pgsql-hackers по дате отправления: