pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Merlin Moncure <mmoncure@gmail.com>
Cc: Atri Sharma <atri.jiit@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Regarding GSoc Application
Date: Mon, 09 Apr 2012 12:45:40 -0400
Message-ID: <4F831234.7040209@dunslane.net> (raw)
In-Reply-To: <CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com>
References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com>
	<CADK3HHLnOXKS0pcoEe8yhi4TwWpGNMnpTN0D+rnfERiuYbcmsw@mail.gmail.com>
	<CAHyXU0wrY4ragg3f=fSRDKs9ofF1t_apqqwGDsxVJde3NgPc-Q@mail.gmail.com>
	<CADK3HHLgyAp00eB4=sZF3dfV5_S_P+xqS=b4pbQLMzFyxAPcUw@mail.gmail.com>
	<CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com>
	<CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com>



On 04/09/2012 12:14 PM, Dave Cramer wrote:
>
> So I'm confused, once they link a file to an FDW can't you just read
> it with an normal select ?
>
> What additional functionality will this provide ?
>



I'm confused about what you're confused about. Surely this won't be 
linking files to an FDW, but foreign DBMS tables, in anything you can 
access via JDBC. All you'll need on the postgres side is the relevant 
JDBC driver, so you'd have instant access via standard select queries to 
anything you can get a JDBC driver to talk to. That seems to me 
something worth having.

I imagine it would look rather like this:

    CREATE FOREIGN DATA WRAPPER foodb HANDLER pljava_jdbc_handler
    OPTIONS (driver 'jdbc.foodb.org');
    CREATE SERVER myfoodb FOREIGN DATA WRAPPER foodb OPTIONS(host
    '1.2.3.4', user 'foouser', password 'foopw');
    CREATE FOREIGN TABLE footbl (id int, data text) SERVER myfoodb;
    SELECT * from footbl;


cheers

andrew



view thread (43+ messages)  latest in thread

Message-ID: <4F831234.7040209@dunslane.net>
Permalink:  ../4F831234.7040209@dunslane.net/
Also on:    postgresql.org/message-id/4F831234.7040209@dunslane.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: andrew@dunslane.net, pg@fastcrypt.com, mmoncure@gmail.com, atri.jiit@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] Regarding GSoc Application
  In-Reply-To: <4F831234.7040209@dunslane.net>
  References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <CADK3HHLnOXKS0pcoEe8yhi4TwWpGNMnpTN0D+rnfERiuYbcmsw@mail.gmail.com> <CAHyXU0wrY4ragg3f=fSRDKs9ofF1t_apqqwGDsxVJde3NgPc-Q@mail.gmail.com> <CADK3HHLgyAp00eB4=sZF3dfV5_S_P+xqS=b4pbQLMzFyxAPcUw@mail.gmail.com> <CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com> <CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com> <4F831234.7040209@dunslane.net>

* 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