aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-12 16:43:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-12 16:43:32 +0000
commitf23bdda3240d3aa511c843a4f91870d17b53b970 (patch)
treedde3dcced0604a669eb4a91a6d9c8af100be10fc /src/backend/utils/adt/xml.c
parentd4a363cdf2b426bbf6c401543b8286ad86ca9bd5 (diff)
downloadpostgresql-f23bdda3240d3aa511c843a4f91870d17b53b970.tar.gz
postgresql-f23bdda3240d3aa511c843a4f91870d17b53b970.zip
Fix LOCK TABLE to eliminate the race condition that could make it give weird
errors when tables are concurrently dropped. To do this we must take lock on each relation before we check its privileges. The old code was trying to do that the other way around, which is a bit pointless when there are lots of other commands that lock relations before checking privileges. I did keep it checking each relation's privilege before locking the next relation, which is a detail that ALTER TABLE isn't too picky about.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions