bbeyer@xxxxxxxxxx writes: > About 150 million records into the import process, I get the following error: > ERROR: lock AccessShareLock on object 51533/51769/0 is already held What PG version? Can you put together a self-contained test case? (It's probably independent of the data, so you could make a script that just processes a lot of dummy data the same way you are doing.) There was a similar report a couple of weeks ago: http://archives.postgresql.org/pgsql-bugs/2008-08/msg00264.php http://archives.postgresql.org/pgsql-bugs/2008-09/msg00021.php but that person hasn't gotten back to us on determining exactly what happened. regards, tom lane