Skip to content

Commit cbe0272

Browse files
committed
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.
1 parent 9423299 commit cbe0272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/repack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,8 @@ repack_drop(PG_FUNCTION_ARGS)
968968
*/
969969
execute_with_format(
970970
SPI_OK_UTILITY,
971-
"LOCK TABLE %s IN ACCESS EXCLUSIVE MODE",
972-
relname);
971+
"LOCK TABLE %s.%s IN ACCESS EXCLUSIVE MODE",
972+
nspname, relname);
973973

974974
/* drop log table: must be done before dropping the pk type,
975975
* since the log table is dependent on the pk type. (That's

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy