Search Postgresql Archives
Re: ALTER ROLE ... SET in current database only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: ALTER ROLE ... SET in current database only
- From: Wolfgang Walther <walther@xxxxxxxxxxxxxxx>
- Date: Tue, 16 Feb 2021 09:41:07 +0100
- Cc: pgsql-general@xxxxxxxxxxxxxxxxxxxx
- In-reply-to: <CAA3DN=XEWesNO_S6QTBRcOe=WO29hsW=JB-W9TBiaU+7_BhsQQ@mail.gmail.com>
- References: <2b2fc152-63cb-1d4a-93c2-f57f28a98fce@technowledgy.de> <CAA3DN=XEWesNO_S6QTBRcOe=WO29hsW=JB-W9TBiaU+7_BhsQQ@mail.gmail.com>
- User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0
Abdul Qoyyuum:
Wouldnt you need to connect to the database first before you can ALTER
ROLE anything?
Of course, otherwise the notion of "current database" wouldn't make
sense at all. But that's only before executing the code. I am not
writing and executing this code at the same time.
In my case I'm seeding a postgres docker container with settings and
data on first launch. The database name is passed to the container via
environment variable. But, I'm sure there are other use-cases where code
should be written once, but be executed in different databases.
Best,
Wolfgang
[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 Databases]
[Postgresql & PHP]
[Yosemite]