postgresql/src
Robert Haas 74a1d4fe7c Improve behavior of concurrent rename statements.
Previously, renaming a table, sequence, view, index, foreign table,
column, or trigger checked permissions before locking the object, which
meant that if permissions were revoked during the lock wait, we would
still allow the operation.  Similarly, if the original object is dropped
and a new one with the same name is created, the operation will be allowed
if we had permissions on the old object; the permissions on the new
object don't matter.  All this is now fixed.

Along the way, attempting to rename a trigger on a foreign table now gives
the same error message as trying to create one there in the first place
(i.e. that it's not a table or view) rather than simply stating that no
trigger by that name exists.

Patch by me; review by Noah Misch.
2011-12-15 19:02:38 -05:00
..
backend Improve behavior of concurrent rename statements. 2011-12-15 19:02:38 -05:00
bin Add --exclude-table-data option to pg_dump. 2011-12-14 09:23:17 -05:00
include Improve behavior of concurrent rename statements. 2011-12-15 19:02:38 -05:00
interfaces Miscellaneous cleanup to silence compiler warnings seen on Mingw. 2011-12-10 18:15:15 -05:00
makefiles
pl PL/Python: Refactor subtransaction handling 2011-12-15 16:52:57 +02:00
port Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
template
test Don't leave regress_test_role_super lying around. 2011-12-15 18:45:02 -05:00
timezone Update time zone data files to tzdata release 2011n. 2011-11-30 11:48:05 -05:00
tools Make pgcompinclude/pgrminclude less tied to Bruce's personal machine. 2011-12-01 14:44:32 -05:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
nls-global.mk
win32.mak