Re: Extracting object source code from database to store in CVS...

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Extracting object source code from database to store in CVS...
Дата
Msg-id 20050323141220.GA16752@wolff.to
обсуждение исходный текст
Ответ на Extracting object source code from database to store in CVS...  (Adrianna Pinska <adrianna.pinska@gmail.com>)
Список pgsql-general
On Wed, Mar 23, 2005 at 14:10:30 +0200,
  Adrianna Pinska <adrianna.pinska@gmail.com> wrote:
>
> More specifically, I've been looking for a way to persuade postgresql
> to output the create script for a single object - without much
> success.  It seems that pg_dump can output a dump of the entire
> database schema or a dump of a single table, but not of a different
> kind of object like a function or view.  So at the moment it looks
> like I'll have to parse the output of the psql "\d" commands into
> create scripts by myself.

Note that you can use the -E option to see what queries psql uses to
create its output. This might help you write the queries you need to
dump function bodies.

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

Предыдущее
От: Shaun Clements
Дата:
Сообщение: FW: PLPGSQL
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: Changing constraints to deferrable