Search Postgresql Archives

Re: Row versions and indexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 28 September 2006 14:58, "Jack Orenstein" 
<jack.orenstein@xxxxxxxxx> wrote:
> How does versioning work for the index?
>
> - The update above does not update the index key. Does the index get
>   updated at all?
>

Yes, it does.

> - If not, then how can an index lookup return the correct version of
>   selected rows?
>
> This aspect of versioning has never been clear to me. Now there's a cost
> issue involved, as I need to update every row in a large table, never
> updating the index key. Will this run faster if I drop the index?
> (Yes, I can run the experiment, but I'd like to understand the
> fundamentals better.)

Yes, it certainly will.

-- 
"A government that robs Peter to pay Paul can always depend upon the support 
of Paul." - George Bernard Shaw



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux