Re: Fwd: Why does pg_rewind deny permission for pg_read_binary_file() other than 'dbname=postgres'? - Mailing list pgsql-admin

From Tom Lane
Subject Re: Fwd: Why does pg_rewind deny permission for pg_read_binary_file() other than 'dbname=postgres'?
Date
Msg-id 1430191.1697162638@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fwd: Why does pg_rewind deny permission for pg_read_binary_file() other than 'dbname=postgres'?  (Zhaoxun Yan <yan.zhaoxun@gmail.com>)
Responses Re: Fwd: Why does pg_rewind deny permission for pg_read_binary_file() other than 'dbname=postgres'?
List pgsql-admin
Zhaoxun Yan <yan.zhaoxun@gmail.com> writes:
> The results are the same, 'dbname=repmgr' is the root cause of the error,
> since 'dbname=postgres' went well with both 'user=rep' and 'user=rewinder',
> while 'dbname=repmgr' generates exactly the same error.

As far as I can tell, you granted permissions on that function
in the postgres database, but not any other database.  Function
permissions, like most others, are database-local in Postgres.

            regards, tom lane



pgsql-admin by date:

Previous
From: Zhaoxun Yan
Date:
Subject: Re: Fwd: Why does pg_rewind deny permission for pg_read_binary_file() other than 'dbname=postgres'?
Next
From: Scott Ribe
Date:
Subject: Re: Locks analyze