Re: Re: Problem with disabling triggers in pg_dump

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: Problem with disabling triggers in pg_dump
Дата
Msg-id Pine.LNX.4.21.0007252048380.546-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Problem with disabling triggers in pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

> We have talked about ways to solve the real problem.  One way is to
> run the entire restore script as superuser, doing something other than
> \connect to set ownership of created objects.  You could do that now
> with something like
>     create table newtable ...
>     update pg_class set relowner = xxx where relname = 'newtable';
> although it'd be nicer to invent ALTER commands to handle this.

And this is what good ol' SQL has in store for us:

CREATE SCHEMA AUTHORIZATION "username" CREATE TABLE t1 (...) CREATE TABLE t2 (...)
;


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: New Privilege model purposal
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_dump, libdump, dump API, & backend again