Add white space to COUNT_COMPETING_LOCKS sql.

Pointed out by schmiddy.
This commit is contained in:
Masahiko Sawada 2017-02-02 19:59:18 +09:00
parent 34c6506f54
commit ff8cb96c74

View File

@ -154,8 +154,8 @@ const char *PROGRAM_VERSION = "unknown";
#define COUNT_COMPETING_LOCKS \ #define COUNT_COMPETING_LOCKS \
"SELECT pid FROM pg_locks WHERE locktype = 'relation'" \ "SELECT pid FROM pg_locks WHERE locktype = 'relation'" \
"AND granted = false AND relation = %u" \ " AND granted = false AND relation = %u" \
"AND mode = 'AccessExclusiveLock' AND pid <> pg_backend_pid()" " AND mode = 'AccessExclusiveLock' AND pid <> pg_backend_pid()"
/* Will be used as a unique prefix for advisory locks. */ /* Will be used as a unique prefix for advisory locks. */
#define REPACK_LOCK_PREFIX_STR "16185446" #define REPACK_LOCK_PREFIX_STR "16185446"