Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 653D813381E9 for ; Wed, 15 Sep 2010 15:38:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 37014-02-2 for ; Wed, 15 Sep 2010 18:38:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og118.obsmtp.com (exprod7og118.obsmtp.com [64.18.2.8]) by mail.postgresql.org (Postfix) with SMTP id 0946B133829B for ; Wed, 15 Sep 2010 15:28:43 -0300 (ADT) Received: from source ([209.85.215.42]) by exprod7ob118.postini.com ([64.18.6.12]) with SMTP ID DSNKTJEQWrM0zIDRazdJv2pvMpeoeLbFgbUt@postini.com; Wed, 15 Sep 2010 11:28:44 PDT Received: by mail-ew0-f42.google.com with SMTP id 2so528346ewy.1 for ; Wed, 15 Sep 2010 11:28:42 -0700 (PDT) Received: by 10.213.14.19 with SMTP id e19mr1607045eba.14.1284575322688; Wed, 15 Sep 2010 11:28:42 -0700 (PDT) Received: from [192.168.1.117] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id u9sm2484768eeh.11.2010.09.15.11.28.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 15 Sep 2010 11:28:41 -0700 (PDT) Message-ID: <4C911058.1050005@enterprisedb.com> Date: Wed, 15 Sep 2010 21:28:40 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.9.1.10) Gecko/20100619 Iceowl/1.0b1 Icedove/3.0.5 MIME-Version: 1.0 To: Robert Haas CC: SAKAMOTO Masahiko , pgsql-hackers@postgresql.org Subject: Re: patch: SQL/MED(FDW) DDL References: <4C905DB0.6040302@oss.ntt.co.jp> <4C906F81.4010108@enterprisedb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.2 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201009/819 X-Sequence-Number: 169683 On 15/09/10 21:21, Robert Haas wrote: > I wonder if we might not think of the foreign data wrapper problem as > an instance of an even more general problem. Right now, we have > semi-pluggable index access methods - it's probably not quite possible > to implement one as a standalone module because of XLOG, and maybe > other reasons, but at least there's some abstraction layer there. > Perhaps we should be thinking about a similar facility of table-access > methods. What if someone wants to implement column-oriented storage, > or index-organized tables, or or tables that are really slow under > heavy write loads but can instantaneously compute SELECT COUNT(*) FROM > table, or mauve-colored tables with magic pixie dust? I don't want to > raise the bar for this project to the point where we can never get it > off the ground, but if there's a way to avoid baking in the assumption > that only foreign tables can ever have special capabilities, that > might be valuable. Well, you could implement all that as a foreign data wrappers. Tables made out of pixie dust feels pretty foreign to me ;-). -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com