Consider schemaname too when doing LOCK TABLE in repack_drop().

This was an oversight in a previous commit to fix the deadlock reported
in Github issue #55.
This commit is contained in:
amit 2015-12-03 13:32:03 +09:00
parent 94232991b9
commit cbe027289a

View File

@ -968,8 +968,8 @@ repack_drop(PG_FUNCTION_ARGS)
*/
execute_with_format(
SPI_OK_UTILITY,
"LOCK TABLE %s IN ACCESS EXCLUSIVE MODE",
relname);
"LOCK TABLE %s.%s IN ACCESS EXCLUSIVE MODE",
nspname, relname);
/* drop log table: must be done before dropping the pk type,
* since the log table is dependent on the pk type. (That's