Re: How to make superuser from non superuser in PostgreSQL

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: How to make superuser from non superuser in PostgreSQL
Дата
Msg-id CAKFQuwZQHrFDsy3C5kL+atJD-dEj+YEXdN0inci1aq-fbCROrg@mail.gmail.com
обсуждение исходный текст
Ответ на How to make superuser from non superuser in PostgreSQL  (Sunil Jadhav <sunilbjpatil@gmail.com>)
Ответы Re: How to make superuser from non superuser in PostgreSQL
Список pgsql-admin


On Thursday, September 19, 2024, Sunil Jadhav <sunilbjpatil@gmail.com> wrote:

I don't know the superuser password?


You will need to figure out a way to login as the (an?) existing superuser.  Typically a password is not required since the pg_hba.conf file usually has a “local postgres postgres peer” (or equivalent) entry which lets the DBA become the OS postgres (or whatever user owns the service) user and then just connect to the cluster using the postgres role.  Regardless, your ability to becomes superuser depends at this point on being able to become the OS user that owns the PostgreSQL service so you can modify pg_hba.conf to let you login.

David J.

В списке pgsql-admin по дате отправления: