Re: I can't seem to put the right combination of magic into the pg_hba and pg_ident files.
В списке pgsql-general по дате отправления:
| От | John R Pierce |
|---|---|
| Тема | Re: I can't seem to put the right combination of magic into the pg_hba and pg_ident files. |
| Дата | |
| Msg-id | 4AF85013.7030304@hogranch.com обсуждение исходный текст |
| Ответ на | Re: I can't seem to put the right combination of magic into the pg_hba and pg_ident files. (Tim Uckun <timuckun@gmail.com>) |
| Ответы |
Re: I can't seem to put the right combination of magic into
the pg_hba and pg_ident files.
|
| Список | pgsql-general |
Tim Uckun wrote:
>> either create a postgres user named 'root' and give it superuser privileges,
>>
>
> In order to do that I need to connect to the database with my script
> which is running under the root account.
>
>
if you are root, use
su -c "psql -f /path/to/script.sql" postgres
>
>> or switch to a different method of authentication for LOCAL users
>>
>
> I am confused. I presumed the proper way to do this was the pg_ident
> file. Is this not possible with the pg_ident file?
>
authenication type is controlled via the pg_hba.conf file.
frankly, I've never used the pg_ident file, it just seems like it would
add more confusion to things. But, it appears to use it you need a
map=/mapname/ primitive in your pg_hba.conf
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера