Re: How do I use the backend APIs - Mailing list pgsql-general

From Christopher Browne
Subject Re: How do I use the backend APIs
Date
Msg-id 87ek22v8f7.fsf@wolfe.cbbrowne.com
Whole thread Raw
In response to How do I use the backend APIs  ("Chad" <chadzakary@hotmail.com>)
List pgsql-general
A long time ago, in a galaxy far, far away, neilc@samurai.com (Neil Conway) wrote:
> On Fri, 2006-02-17 at 11:34 +0800, Qingqing Zhou wrote:
>> AFAIK there is no such API for this purpose. The reason is that to access
>> BTree, you have to setup complex enough environment to enable so. For
>> example, the buffer pool support, the WAL support etc. So though exporting
>> such API is easy to do, there is no pratical usage of it.
>
> Well, if the API is going to be invoked by C UDFs, it could assume that
> the environment has been appropriately initialized.
>
> I think it would be possible to provide such an API (although it would
> take a considerable amount of work). However, I don't see the point --
> why would an application want to use the API? SQL is much more flexible.

It would probably make more sense to create an API that runs the
activities via a translation into SQL...
--
let name="cbbrowne" and tld="ntlug.org" in String.concat "@" [name;tld];;
http://linuxdatabases.info/info/slony.html
Rules of the  Evil Overlord #46. "If an advisor says  to me "My liege,
he  is but  one man.  What can  one man  possibly do?",  I  will reply
"This." and kill the advisor." <http://www.eviloverlord.com/>

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Fwd: [pgsql-jp: 36715] Josh Berkus氏の講演MP3
Next
From: Tony Caduto
Date:
Subject: Re: return setof and Temp tables