Alex Vinogradovs <AVinogradovs@xxxxxxxxxxxxxxxx> writes: > I've got a pretty large database, and since certain time > it started giving me "too many LWLocks taken" when running > some batch inserts... Any parameter can be ajusted ? Oh really? That's a bug, not something you need to adjust a parameter for. Can you put together a self-contained test case? What PG version is this? regards, tom lane