Re: Invalid indexes should not consume update overhead
От | Peter Geoghegan |
---|---|
Тема | Re: Invalid indexes should not consume update overhead |
Дата | |
Msg-id | CAM3SWZRKUqdPeh5aGGg6BydBWxFL+fySmx5xdoWzCUBCCD5W2Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Invalid indexes should not consume update overhead ("Rader, David" <davidr@openscg.com>) |
Ответы |
Re: Invalid indexes should not consume update overhead
|
Список | pgsql-bugs |
On Sun, Jul 17, 2016 at 1:42 PM, Rader, David <davidr@openscg.com> wrote: > For example, in SQL Server you can "alter index disable". If you are about > to do a lot of bulk operations. But there is no "re-enable"; instead you > have to "alter index rebuild" because as has been said on this thread you > don't know what has changed since the disable. > > Basically this is very similar to dropping and recreating indexes around > bulk loads/updates. That seems pretty pointless. Why not actually drop the index, then? The only reason I can think of is that there is value in representing that indexes should continue to have optimizer statistics (that would happen for expression indexes in Postgres) without actually paying for the ongoing maintenance of the index during write statements. Even that seems like kind of a stretch, though. -- Peter Geoghegan
В списке pgsql-bugs по дате отправления: