| От | Tom Lane |
|---|---|
| Тема | Re: pg_shadow dump annoying problem |
| Дата | |
| Msg-id | 10747.1068427973@sss.pgh.pa.us обсуждение |
| Ответ на | pg_shadow dump annoying problem (Gaetano Mendola <mendola@bigfoot.com>) |
| Ответы |
Re: pg_shadow dump annoying problem
|
| Список | pgsql-admin |
Gaetano Mendola <mendola@bigfoot.com> writes:
> [ pg_dumpall emits this: ]
> DELETE FROM pg_shadow WHERE usesysid <> (SELECT datdba FROM pg_database
> WHERE datname = 'template0');
> Now if the file pg_user.sql is used accidentally by a user that is not
> postgres the result is that all users are deleted ( also the user that
> is doing the restore ) and no other user is created.
How so? If that deletes all users then you have already removed the
user who owns template0, ie, the user who did initdb. That is a really
bad idea.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера