Lexington Luthor <lexington.luthor@xxxxxxxxx> writes: > Hi, > > I have a number of large tables in a schema all of which are related > by foreign keys. > > Now, what I would like to be able to do is run some long-running > queries (mostly selects, but also some updates and inserts into the > tables), to generate some reports which will eventually be > rolled-back. > > Now, while this works just fine, I would like to be able to avoid > holding other transactions back while this is happening. In general, you won't block other transactions, unless you do explicit locking with SELECT FOR UPDATE or LOCK TABLE. The rows you change will simply never be seen by other transactions and will be removed by the next VACUUM after your transaction rolls back. -Doug ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend