FlywayException: Number of retries exceeded while attempting to acquire PostgreSQL advisory lock
There are some script about advisory:
----this will try to obtain the lock. If the lock is successfully obtained, Postgres will return 't', otherwise 'f' if you failed you obtain the lock,will not wait until it can obtain the lock, it will return immediately with 't' or 'f'.
SELECT pg_try_advisory_lock(1);
---- This will r

博客提到出现FlywayException,在尝试获取PostgreSQL咨询锁时重试次数超出限制,还提及存在关于咨询的脚本以及配置锁重试次数的路径。

966

被折叠的 条评论
为什么被折叠?



