pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zheng Yang <zhengyang4k@gmail.com>
To: Selena Deckelmann <selena@chesnok.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-students@postgresql.org
Subject: Re: foreign data wrappers
Date: Thu, 24 Mar 2011 13:39:45 +0800
Message-ID: <3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com> (raw)
In-Reply-To: <AANLkTi=0KD_ef9XDJde52nb0n5YgysMHTjWwkKZurDR-@mail.gmail.com>
References: <AANLkTi=FhaO5mX_YdqqsF1Yh0YNEHW8H1f0AUdpE0Fmo@mail.gmail.com>
	<690867AB-C50B-4354-91D0-8A0811639C4C@gmail.com>
	<AANLkTimKc4Jb4ydk=GO3shdv0gTPyad+y9z_kXXVKZoq@mail.gmail.com>
	<4D879CD0.5030803@dunslane.net>
	<AANLkTi=0KD_ef9XDJde52nb0n5YgysMHTjWwkKZurDR-@mail.gmail.com>

Hi guys,

I've figured out what a FDW does. It's quite clear from the doc that a FDW is an interface postgresql database used to communicate with
other data sources either it be a file, another DBMS or even weblinks  (please correct me if i am wrong).

I have a few more specific questions on FDW. hope you guys can help!

1) by right the FDW should be implemented by the vendor of the datasource, is that correct? 

2) what are the FDW that has been implemented? I've seen an plain file FWD module from the link provided by selena.

3) in one of the examples, when declaring an FDW,  "..LIBRARY ’foosql_fdw.so’ LANGUAGE C;"  the LANGUAGE option is going to be C only?

4) Is theFDW something similar to the Mysql storage engine architecture?

5) for the datalink, the doc has mentioned about it's going to be OS dependent. but i dun quite understand how does the kernel module and LD_PRELOAD will work in this case, esp.LD_PRELOAD.

That's the question so far. Thanks very much!

Regards,
Zheng Yang



On 22-Mar-2011, at 3:49 AM, Selena Deckelmann wrote:

> On Mon, Mar 21, 2011 at 11:45 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
> 
>> Yes, but 9.1 *has* actual FDWs. The best thing to do (other than attending
>> my talk on Thursday :-) )
> 
> :) I'll be around, so hopefully I can attend your talk and post up some notes!
> 
>> is to look at the file_fdw module in git head, to
>> see an actual working example.
> 
> I figured if I posted some wrong information someone would respond! :)
> 
> Zheng - here is a link to the existing code:
> http://git.postgresql.org/gitweb?p=postgresql.git;a=tree;f=contrib/file_fdw
> 
> -selena
> 
> -- 
> http://chesnok.com

view thread (37+ messages)  latest in thread

Message-ID: <3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com>
Permalink:  ../3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com/
Also on:    postgresql.org/message-id/3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: zhengyang4k@gmail.com, selena@chesnok.com, andrew@dunslane.net, pgsql-students@postgresql.org
  Subject: Re: foreign data wrappers
  In-Reply-To: <3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox