Steps to replicate the issue (include links if applicable):
- MediaWiki 1.39.4
- Postgres
What happens?:
ERROR: syntax error at or near "pg_advisory_unlock_all" at character 1 is reported at times
According to the reporting user this is because in includes/libs/rdbms/database/DatabasePostgres.php in the function doFlushSession, the Query is incorrectly constructed. The effective query should be SELECT pg_advisory_unlock_all() but now it is pg_advisory_unlock_all()
If so, then this problem was introduced in 1.39 by @aaron in Change-ID I60532f86e629c83b357d4832d1963eca17752944