That's OK. I can set things up so that the Thrift or Web servers call the Andl runtime directly, pass generated SQL queries in through libpq, and call the Andl runtime recursively from the plandl handler as needed. It's just one more API to deal with. Thanks for the suggestion, but I already did an Sqlite implementation. It was the obvious place to start, but now I need a real server. Regards David M Bennett FACS Andl - A New Database Language - andl.org > -----Original Message----- > From: Tom Lane [mailto:tgl@xxxxxxxxxxxxx] > Sent: Thursday, 21 April 2016 11:57 PM > To: david@xxxxxxxx > Cc: pgsql-general@xxxxxxxxxxxxxx > Subject: Re: Is it possible to call Postgres directly? > > <david@xxxxxxxx> writes: > > So the question is: Can a C program link to the Postgres DLL and call > > SPI directly, rather than through a language function? > > No, there is no provision for non-server usage of the code. If that's what > you're after you might be happier with SQLite or something similar. > > regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general