Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> What's happening is that there is simply so many temporary tables in
> pg_class that when the new backend tries to clear them with
> RemoveTempRelations, it runs out of lock space.
What happened to the original owner of the tables? It must have had
locks on all those tables ...
regards, tom lane