Hello, I'll get right to the point. I'd like to create a user for my pg_dump backup process. I'd like that user to have only the privileges required to run pg_dump. I have a language, a function and sequences, views and tables in my schema. What privileges are needed for pg_dump to run in addition to USAGE (for the language), EXECUTE (for the function) and SELECT (tables, views and sequences)? Thanks! Mark
Mark Lubratt <mark.lubratt@indeq.com> writes:
> I'd like to create a user for my pg_dump backup process. I'd like that
> user to have only the privileges required to run pg_dump.
You're wasting your time. pg_dump should generally be run by the
database superuser. Anything less creates problems with being unable
to dump stuff that doesn't belong to it.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера