Hi Keith, the advisory_xact_lock is released at the first commit. Shouldn't this be a session level lock? Is it ensured, that run_maintenance and partition_data_proc don't run in parallel? Rgds, Jens