Re: Autoanalyze and OldestXmin - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: Autoanalyze and OldestXmin
Date
Msg-id 016FA578-A1C8-4232-A5BF-017C67A77EB3@nasby.net
Whole thread Raw
In response to Re: Autoanalyze and OldestXmin  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Jun 8, 2011, at 10:33 AM, Greg Stark wrote:
> This is kind of like the other property it would be nice to know about transactions: that they've locked all the
tablesthey're going to lock. 
That sounds like something I've wanted for a very long time: the ability for a transaction to say exactly what tables
it'sgoing to access. Presumably disallowing it from taking out any more table locks (anything you do on a table needs
atleast a share lock, right?) would take care of that. 

If we had that information vacuum could ignore the old snapshots on those tables, so long as it ensures that the vacuum
processitself can't read anything from those tables (handling the functional index issue Tom mentioned). 
--
Jim C. Nasby, Database Architect                   jim@nasby.net
512.569.9461 (cell)                         http://jim.nasby.net




pgsql-hackers by date:

Previous
From: Brar Piening
Date:
Subject: Re: smallserial / serial2
Next
From: "Kevin Grittner"
Date:
Subject: SSI work for 9.1