Re: how can I create the DML for an existing database - within an application

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "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:39:53
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA352A2@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2006-04-13 07:45:01 Re: how can I create the DML for an existing database - within an application
Previous Message Harald Armin Massa 2006-04-13 05:50:13 how can I create the DML for an existing database - within an application