Re: feature request: pg_dump --view

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: feature request: pg_dump --view
Дата
Msg-id 20060719134433.GD20016@kenobi.snowman.net
обсуждение исходный текст
Ответ на Re: feature request: pg_dump --view  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
* Andrew Dunstan (andrew@dunslane.net) wrote:
> elein wrote:
> >>pg_dump -t <view_name> will work.
> >
> >Oh, you got me all worked up.  I was reading this as a way to
> >dump the CONTENTS of a view not the DEFINITION of a view.
> >I thought someone sneaked in pg_dump of a query in there.
> >
> >
>
> How would you load such a dump, since views are by default select-only?

Create the appropriate table definition, and then load it up?  Of
course, an option to have the pg_dump include the table definition
derived from the view would be nice also.
Thanks,
    Stephen

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: password is no required, authentication is overridden
Следующее
От: Phil Frost
Дата:
Сообщение: Re: lastval exposes information that currval does not