Re: How do I use the backend APIs

From: Neil Conway <neilc(at)samurai(dot)com>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How do I use the backend APIs
Date: 2006-02-17 04:29:28
Message-ID: 1140150568.31672.90.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

-Neil

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Justin B. Kay 2006-02-17 05:13:02 return setof and Temp tables
Previous Message Benjamin Arai 2006-02-17 04:21:54 EnterpriseDB