From: | "Sufficool, Stanley" <ssufficool(at)rov(dot)sbcounty(dot)gov> |
---|---|
To: | "Guillaume Lelarge" <guillaume(at)lelarge(dot)info>, "Vish Phaneendra" <vish(at)greenplum(dot)com> |
Cc: | <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: Calling a Postgres utility in pgpsql function |
Date: | 2009-06-09 15:13:04 |
Message-ID: | C2F174F99918D54CA2A96E57C5079B6F015C3B7A@sbc-exmsg2.sbcounty.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
This could be done with C if the author of this wonderful utility decided to make it a shared library ;)
> -----Original Message-----
> From: pgadmin-support-owner(at)postgresql(dot)org
> [mailto:pgadmin-support-owner(at)postgresql(dot)org] On Behalf Of
> Guillaume Lelarge
> Sent: Tuesday, June 09, 2009 12:59 AM
> To: Vish Phaneendra
> Cc: pgadmin-support(at)postgresql(dot)org
> Subject: Re: [pgadmin-support] Calling a Postgres utility in
> pgpsql function
>
>
> Vish Phaneendra a écrit :
> > [...]
> > 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;
> >
>
> No, you can't with PL/pgsql. But you can certainly do that with
> untrusted PL like PL/Perlu or PL/Pythonu.
>
>
> --
> Guillaume.
> http://www.postgresqlfr.org
> http://dalibo.com
>
> --
> Sent via pgadmin-support mailing list (pgadmin-support(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Nolte | 2009-06-10 05:48:19 | Bug with 1.10.0 Beta 4 |
Previous Message | Guillaume Lelarge | 2009-06-09 07:58:53 | Re: Calling a Postgres utility in pgpsql function |