Re: Fun fact about autovacuum and orphan temp tables - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Fun fact about autovacuum and orphan temp tables
Date
Msg-id 20160905133440.GA671130@alvherre.pgsql
Whole thread Raw
In response to Fun fact about autovacuum and orphan temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
Responses Re: Fun fact about autovacuum and orphan temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
List pgsql-hackers
Grigory Smolkin wrote:

> Funny part is that it never drops them. So when backend is finally
> terminated, it tries to drop them and fails with error:
> 
> FATAL:  out of shared memory
> HINT:  You might need to increase max_locks_per_transaction
> 
> If I understand that rigth, we are trying to drop all these temp tables in
> one transaction and running out of locks to do so.

Hmm, yeah, I suppose it does that, and it does seem pretty inconvenient.
It is certainly pointless to hold onto these locks for temp tables.  I
wonder how ugly would be to fix this problem ...

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: Fun fact about autovacuum and orphan temp tables
Next
From: Ildar Musin
Date:
Subject: Re: Index Onlys Scan for expressions