Re: how can I create the DML for an existing database - within an application - Mailing list pgsql-general

From Magnus Hagander
Subject Re: how can I create the DML for an existing database - within an application
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA352A2@algol.sollentuna.se
Whole thread Raw
In response to how can I create the DML for an existing database - within an application  ("Harald Armin Massa" <haraldarminmassa@gmail.com>)
List pgsql-general
> 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.

//Magnus

pgsql-general by date:

Previous
From: "Harald Armin Massa"
Date:
Subject: how can I create the DML for an existing database - within an application
Next
From: "Dave Page"
Date:
Subject: Re: how can I create the DML for an existing database - within an application