Re: Is it possible to call Postgres directly?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to call Postgres directly?
Date: 2016-04-21 06:33:25
Message-ID: 57187435.4050303@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/20/2016 10:59 PM, david(at)andl(dot)org wrote:
> So the question is: Can a C program link to the Postgres DLL and call SPI
> directly, rather than through a language function?
>
> Is there a way to launch a Thrift server or a Web server and call SPI
> directly?

no, those can only be called from the context of a function that was
called from SQL as part of a query.

if you want to completely replace SQL as the query language, why don't
you just provide your own Andl API, and have it run in the client
context and execute SQL queries via the normal libpq style API ?

you could still use pl/andl for things like triggers and such but not
for direct client queries.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2016-04-21 07:00:02 Re: Function PostgreSQL 9.2
Previous Message david 2016-04-21 05:59:27 Re: Is it possible to call Postgres directly?