On 25.03.2011 22:21, Robert Haas wrote:
> On Fri, Mar 25, 2011 at 3:29 PM, Greg Stark<gsstark@mit.edu> wrote:
>> On Fri, Mar 25, 2011 at 7:06 PM, Robert Haas<robertmhaas@gmail.com> wrote:
>>>> 1. The table has been created or truncated in the same transaction
>>> ,,,
>>> That's not enough... some other transaction could see the data before
>>> the transaction commits.
>>
>> How?
>
> Hmm. Maybe I'm wrong. I guess the XID would still be in the MVCC
> snapshot of every other running transaction, so maybe it would be OK.
> *scratches head*
Right. You can't mark the tuples as frozen, but you can set the
xmin-committed hint bits.
-- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com