Search Postgresql Archives

Re: Allow login on slave only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can leave authentication to something else. For example authenticate the users by having them connect to pgBouncer first.

-Joseph

On Fri, Dec 16, 2016 at 11:17 AM, Andomar <andomar@xxxxxxxx> wrote:

We run a master server and a hot standby server. Reporting users login to the standby server to run long queries. However, their login is also valid on the master server. Is it possible to prevent a user from logging in to the master server?

 

A statement like:

 

    alter role newbie_business_analyst nologin;

 

Is replicated, so it would block logins on both servers.

 

Thanks,

Andomar



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux