Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-12-29 Thread Alvaro Herrera
Tom Lane wrote: [ reincluding the mailing list ] Michael Milligan mi...@acmeps.com writes: Okay, it reproduces and surprise surprise nLocks does overflow... ERROR: lock AccessShareLock on object 16385/16467/0 is already held lock(0x87408a028) id(16385,16467,0,0,0,1) grantMask(a)

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-12-29 Thread Tom Lane
Alvaro Herrera alvhe...@commandprompt.com writes: Tom Lane wrote: Michael Milligan mi...@acmeps.com writes: Okay, it reproduces and surprise surprise nLocks does overflow... Hah. Okay, that shows that we'd never have reproduced it with a small test case. This hasn't been fixed yet, has

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-12-29 Thread Alvaro Herrera
Tom Lane wrote: 2008-09-15 21:56 tgl * src/include/storage/: lock.h (REL8_1_STABLE), lock.h (REL8_3_STABLE), lock.h (REL8_0_STABLE), lock.h (REL8_2_STABLE), lock.h: Widen the nLocks counts in local lock tables from int to int64. Doh, I didn't see it because I only

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-09-07 Thread Bruce Momjian
Tom Lane wrote: [ reincluding the mailing list ] Michael Milligan [EMAIL PROTECTED] writes: Okay, it reproduces and surprise surprise nLocks does overflow... ERROR: lock AccessShareLock on object 16385/16467/0 is already held lock(0x87408a028) id(16385,16467,0,0,0,1) grantMask(a)

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-09-07 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: In any case, now that we know that nLocks overflow is actually possible within real-world transaction lengths, it'd behoove us to do something about that in 8.4 or beyond. Is this a TODO? Yes, although I'm still waiting for more info

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-09-02 Thread Tom Lane
[ reincluding the mailing list ] Michael Milligan [EMAIL PROTECTED] writes: Okay, it reproduces and surprise surprise nLocks does overflow... ERROR: lock AccessShareLock on object 16385/16467/0 is already held lock(0x87408a028) id(16385,16467,0,0,0,1) grantMask(a) waitMask(0)

[BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Uh oh. This is a first (for me). I got this error on a transaction, it did not crash the server but did abort the transaction (of course). ERROR: lock AccessShareLock on object 16385/16467/0 is already held What was I doing? A large transaction where I was pushing about 20 million rows into

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Heikki Linnakangas wrote: Michael Milligan wrote: Uh oh. This is a first (for me). I got this error on a transaction, it did not crash the server but did abort the transaction (of course). ERROR: lock AccessShareLock on object 16385/16467/0 is already held What was I doing? A large

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Tom Lane wrote: Michael Milligan [EMAIL PROTECTED] writes: Uh oh. This is a first (for me). I got this error on a transaction, it did not crash the server but did abort the transaction (of course). ERROR: lock AccessShareLock on object 16385/16467/0 is already held Huh, that shouldn't

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Tom Lane
Michael Milligan [EMAIL PROTECTED] writes: Tom Lane wrote: Huh, that shouldn't happen. What object is that? The 16385 should be a database OID, and the 16467 is most likely a table's OID within that database. Please answer the above question. And a correction, the transaction that caused

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Tom Lane wrote: Michael Milligan [EMAIL PROTECTED] writes: Tom Lane wrote: Huh, that shouldn't happen. What object is that? The 16385 should be a database OID, and the 16467 is most likely a table's OID within that database. Please answer the above question. 16385 is the database (db)

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Tom Lane
Michael Milligan [EMAIL PROTECTED] writes: Tom Lane wrote: Once you've determined which table the error message is talking about, please show us what the transaction does with that table. You mean like: BEGIN; PREPARE msg (...) INSERT INTO email VALUES (...); EXECUTE msg (...) EXECUTE

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Tom Lane wrote: Michael Milligan [EMAIL PROTECTED] writes: Tom Lane wrote: Once you've determined which table the error message is talking about, please show us what the transaction does with that table. You mean like: BEGIN; PREPARE msg (...) INSERT INTO email VALUES (...); EXECUTE

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Tom Lane wrote: What I'm wondering about is the sequence of operations that are executed per row. Could it be long enough that the email table is being touched by more than 2 billion separate SQL operations within the transaction? FWIW, I've used the exact same code against PG 8.2.6 and

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Tom Lane
Michael Milligan [EMAIL PROTECTED] writes: FWIW, I've used the exact same code against PG 8.2.6 and have half a dozen similar transactions that inserted more than 13.5 million rows, with the largest transaction at a little over 25 million rows inserted into the email table. Hmph. That seems

Re: [BUGS] PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held

2008-08-29 Thread Michael Milligan
Tom Lane wrote: Michael Milligan [EMAIL PROTECTED] writes: FWIW, I've used the exact same code against PG 8.2.6 and have half a dozen similar transactions that inserted more than 13.5 million rows, with the largest transaction at a little over 25 million rows inserted into the email table.