plpgsql direct from C?

From: "James Harper" <james(dot)harper(at)bendigoit(dot)com(dot)au>
To: <pgsql-general(at)postgresql(dot)org>
Subject: plpgsql direct from C?
Date: 2006-02-05 02:47:05
Message-ID: AEC6C66638C05B468B556EA548C1A77DAF0727@trantor
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there an API method to be able to execute pl/pgsql (or any other
language) code directly from C?

Eg (please excuse the line wrapping, and the fact that this doesn't
represent a case where this would actually be useful!)

result = PQexecPL("plpgsql", "IF $1 = 'xyzzy" THEN SELECT * FROM fnord
END IF;", "xyzzy");

?

Thanks

James

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2006-02-05 02:58:16 Re: plpgsql direct from C?
Previous Message Tom Lane 2006-02-05 01:01:31 Re: information_schema.columns.column_default filtered based on user