Re: Lock for table renaming

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Lock for table renaming
Date: 2006-12-06 15:19:37
Message-ID: 26025.1165418377@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Why does renaming a table take out an access exclusive lock on the target
> table?

To prevent other transactions failing because the table "disappears"
underneath them.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2006-12-06 15:34:02 Re: Optimizing "top queries" ...
Previous Message Tom Lane 2006-12-06 15:12:51 Re: Bug in PostGreSQL 8.2