Is it possible to call Postgres directly?

Поиск
Список
Период
Сортировка
От
Тема Is it possible to call Postgres directly?
Дата
Msg-id 006c01d19b75$53802140$fa8063c0$@andl.org
обсуждение исходный текст
Ответы Re: Is it possible to call Postgres directly?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Is it possible to call Postgres directly?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
I am attempting to create a new language implementation. The language is
Andl (see http://www.andl.org/2016/04/postgres-meet-andl/).

I would like to be able to execute SQL queries by a direct call into
Postgres, without going through either (1) the language call handler or (2)
a 'wire' protocol.

Re (1): At present I can do it like this:

SELECT * FROM COMPILE($$
<Andl code goes here>
$$);

But I would like to avoid the outer SQL SQL wrapper.

Re (2): Those queries will contain Andl functions, which require a callback
into the same session of the language 'engine'.

I guess what I'm trying to do is provide a substitute for existing wire
protocols, using either a Thrift server or a Web server calling directly
into Postgres.

Regards
David M Bennett FACS

Andl - A New Database Language - andl.org





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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: RLS policy dump/restore failure due to elided type-casts
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Is it possible to call Postgres directly?