Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 662481337B96 for ; Thu, 24 Mar 2011 05:49:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 72509-08 for ; Thu, 24 Mar 2011 08:49:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id 9AAFE1337B49 for ; Thu, 24 Mar 2011 05:49:27 -0300 (ADT) Received: by pzk9 with SMTP id 9so1145902pzk.19 for ; Thu, 24 Mar 2011 01:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer; bh=IJGzsn0WZGArpaGeZJJtzenP4dPn+js3pE/cj1EO72M=; b=u0kI+OWcxVtJ6q+IcYPJWedbgnnzzi9nyQFRiwSVa5vPRTWa2hzXNbdcOWqhR1wlsH GwF/f/l5K4KbsHctabu/QBCC9CxyeGq6YiM5Tyfg0EXTVecZ+P8pgEm3MEaJ64f3iUPs Qt6g0xXEuslCV9gmf0IjJPibNTIaTvuOhvOOs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=swOJ5vUla0t5kC6760WDZvOFGzq20G24v/oS8dgyOt+EpJfqzpNWjWIEIsRWFGXkz7 jaYOwHAMSos81JA+SiMT3RQTtf9d9IPfOcafW1qTukB46wZ9j+py6Vpia9ZyzEp7ZZf1 9jz74cbONYqcVWNPs+0VRomYtPRUEVzboSZYA= Received: by 10.142.196.17 with SMTP id t17mr5864701wff.55.1300956566853; Thu, 24 Mar 2011 01:49:26 -0700 (PDT) Received: from [122.64.202.118] ([124.68.4.33]) by mx.google.com with ESMTPS id n4sm11212009wfl.14.2011.03.24.01.49.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2011 01:49:25 -0700 (PDT) Subject: Re: foreign data wrappers Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 From: Zheng Yang In-Reply-To: <4D8AF8C2.3000007@lelarge.info> Date: Thu, 24 Mar 2011 16:49:19 +0800 Cc: Selena Deckelmann , Andrew Dunstan , pgsql-students@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <4ACC318A-1B6F-49A5-9B02-49EEAF7B97C7@gmail.com> References: <690867AB-C50B-4354-91D0-8A0811639C4C@gmail.com> <4D879CD0.5030803@dunslane.net> <3EF9E4CC-CF42-4B45-86FF-4CB9D46D7442@gmail.com> <4D8AF8C2.3000007@lelarge.info> To: Guillaume Lelarge X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201103/21 X-Sequence-Number: 162 Hi Guillaume, Thanks very much! Your answers help a lot! >=20 > Le 24/03/2011 06:39, Zheng Yang a =E9crit : >=20 >> 4) Is theFDW something similar to the Mysql storage engine = architecture? >>=20 >=20 > Not really. AFAIK,there is a CSV storage engine in MySql that serves as a wrapper, = enable executing SQL queries directly on the file. This makes me think that the CSV FDW was doing similar things.=20 >=20 >> 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. >>=20 >=20 > No idea. >=20 I am quite new to postgresql, but slowly picking up :) In general = context, storing images directly inside DBMS fields as BLOBs was not = considered as a good practice.=20 However, storing file directories or links may cause inconsistency. So = I am quite interested in how this datalink concept can be implemented!=20= > Writing some FDWs would make a really good GSoC project. Haha, agree! I believe that's also a great starting point for learning = pgsql internals. cheers ZY