Got 'permission denied for function pg_ls_waldir' from external postgresql

I’m hosting a self managed Gitlab instance (latest version) with a external PostgreSQL on another server. This works pretty good so far. I check the logs of all involved server/services every month. This month I noticed the following error message in the PostgreSQL logs.

gitlab@gitlab ERROR: permission denied for function pg_ls_waldir
gitlab@gitlab STATEMENT:
SELECT
COUNT(*) AS segments,
SUM(size) AS size
FROM pg_ls_waldir()
WHERE name ~ ‘[1]{24}$’

So far the Gitlab instance is running without any errors, but this log message made me worrying.
I have searched for any information, but didn’t find a solution. So hopefully someone here can help?


  1. 0-9A-F ↩︎