Re: Automatically assuming a specific role after connecting

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Automatically assuming a specific role after connecting
Date: 2006-04-23 13:46:42
Message-ID: 444B8542.8080406@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephen Frost wrote:
> * Florian G. Pflug (fgp(at)phlo(dot)org) wrote:
>
>>I'd like to be able to connect to postgres, and automatically assume a
>>specific role.
>
> Couldn't you just have 'SET ROLE <whatever>' in the user's .psqlrc? At
> least, if that's how they're connecting I think that'd work...
I can do that with "alter user <user> set role <whatever>" too...
But I'd like my users to be able to connect as either role "dev" or
role "admin", depending on the task they want to do.

greetings, Florian Pflug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wes 2006-04-23 14:06:59 Concurrency problem building indexes
Previous Message Stephen Frost 2006-04-23 13:44:06 Re: Automatically assuming a specific role after connecting to pg