Postgres advisory locking functions only accept integer keys. So the driver converts key strings into 64-bit integers through hashtext() function. An empty string can also be used as a key. MySQL ...