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

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Adrianna Pinska <adrianna(dot)pinska(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Extracting object source code from database to store in CVS...
Date: 2005-03-23 14:12:20
Message-ID: 20050323141220.GA16752@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Mar 23, 2005 at 14:10:30 +0200,
Adrianna Pinska <adrianna(dot)pinska(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-03-23 14:19:21 Re: FW: PLPGSQL
Previous Message josue 2005-03-23 14:05:45 Table audit system