Changing DB ownership

Поиск
Список
Период
Сортировка
От Christopher Murtagh
Тема Changing DB ownership
Дата
Msg-id 1059571805.966.8.camel@mafalda.murtagh.name
обсуждение исходный текст
Список pgsql-general
 Dumb question maybe, but how does one change database ownership? I've
tried several permutations of:

ALTER DATABASE SET ("|'| )owner("|'| ) TO ("|'| )newowner("|'| );

and I tried looking at pg_database and I *was* able to hack this (got a
clue half way through writing this email... sorry):

UPDATE pg_database SET datdba = 504 WHERE datname='chris';

And that worked as expected, but I'm worried that I might have missed
something somewhere else. Will the above UPDATE cause problems down the
road?

Any info/clue would be much appreciated. Thanks in advance.

Cheers,

Chris

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

Предыдущее
От: DeJuan Jackson
Дата:
Сообщение: Re: SQL SUM query limited by dates
Следующее
От: DeJuan Jackson
Дата:
Сообщение: Re: Unused Indexes