From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "Magnus Hagander" <mha(at)sollentuna(dot)net>, "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>, "pgsql-general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: how can I create the DML for an existing database - within an application |
Date: | 2006-04-13 07:45:01 |
Message-ID: | E7F85A1B5FF8D44C8A1AF6885BC9A0E4011C9C74@ratbert.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of
> Magnus Hagander
> Sent: 13 April 2006 08:40
> To: Harald Armin Massa; pgsql-general
> Subject: Re: [GENERAL] how can I create the DML for an
> existing database - within an application
>
> > I want to get the output from
> >
> > pg_dump --struct-only --table=whatever
> >
> > inside a programm. Of course I could call pg_dump in a seperate
> > process and capture the output and all; but ...
> >
> > as PGAdmin is doing it someway, I strongly suspect there is
> a kind of
> > call to recreate the DML language from a table in the
> database. Please
> > give me a hint!
>
> AFAIK, pgadmin opens a pipe to pg_dump.
Yes, when creating an actual backup. To display the definition on the
main window it goes to great pains to reverse engineer the SQL from the
catalogues.
Regards, Dave
From | Date | Subject | |
---|---|---|---|
Next Message | Paolo Sala | 2006-04-13 08:35:55 | unattened dump |
Previous Message | Magnus Hagander | 2006-04-13 07:39:53 | Re: how can I create the DML for an existing database - within an application |