> 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