Hi,

Is it possible to call a postgres utility from pgpsql function? I'm trying to get the table definition using the pgpsql function.

CREATE FUNCTION table_definition(text) RETURNS text AS $$
pg_dump -st $1
$$ LANGUAGE plpgsql;

Rgds,
Vish

Reply via email to