plpgsql direct from C?

Поиск
Список
Период
Сортировка
От James Harper
Тема plpgsql direct from C?
Дата
Msg-id AEC6C66638C05B468B556EA548C1A77DAF0727@trantor
обсуждение исходный текст
Ответы Re: plpgsql direct from C?  (Doug McNaught <doug@mcnaught.org>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: information_schema.columns.column_default filtered based on user
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: plpgsql direct from C?