Re: refresh materialized view concurrently - Mailing list pgsql-hackers

From Tom Lane
Subject Re: refresh materialized view concurrently
Date
Msg-id 23761.1372879904@sss.pgh.pa.us
Whole thread Raw
In response to Re: refresh materialized view concurrently  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: refresh materialized view concurrently
List pgsql-hackers
Kevin Grittner <kgrittn@ymail.com> writes:
> OK.� I had seen that no locks were held after the insert and wasn't
> aware that we acquired and then released them for each insert
> within a transaction.� On the other hand, we acquire locks on all
> indexes even for a HOT UPDATE which uses a seqscan, and hold those
> until end of transaction.� Is there a reason for that?

Sounds dubious to me; although in the HOT code it might be that there's
no convenient place to release the index locks.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Gavin Flower
Date:
Subject: Re: Improvement of checkpoint IO scheduler for stable transaction responses
Next
From: Josh Berkus
Date:
Subject: Re: [9.4 CF 1] The Commitfest Slacker List