pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Albretch Mueller <lbrtchx@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: making postgresql "source" its data feed from external csv file ...
Date: Tue, 04 Jan 2011 11:14:10 +1100
Message-ID: <4D226652.9040507@postnewspapers.com.au> (raw)
In-Reply-To: <AANLkTikPAu7p-LxsPk=R_H+fY-78gPjsa=_4yqqyEqc0@mail.gmail.com>
References: <AANLkTikPAu7p-LxsPk=R_H+fY-78gPjsa=_4yqqyEqc0@mail.gmail.com>

On 01/04/2011 09:55 AM, Albretch Mueller wrote:

>   As I understand postgresql "COPY FROM" does in effect copy the data
> to the DBMS, but what I need is for the DBMS to "source" its data feed
> with the outer file and synchronize it as it changes without having to
> run "COPY TO". Is this possible? This way I can keep the data in a way
> that I can try on any DBMS

No, that's not currently possible. What you describe is covered by 
SQL/MED. There's ongoing work to implement SQL/MED for 9.1 / 9.2, but 
there is no support for it in any current release version of PostgreSQL. 
SQL/MED is intended for a lot more than just accessing flat files, but 
should be capable of that.

There's a reason relational databases don't store their backing data as 
CSV files - because they're *SLOW* to work with, in particular to 
update. You can expect horribly slow write performance with any scheme 
like this even if you do get it working.

--
Craig Ringer



view thread (4+ messages)  latest in thread

Message-ID: <4D226652.9040507@postnewspapers.com.au>
Permalink:  ../4D226652.9040507@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4D226652.9040507@postnewspapers.com.au

 · 

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: craig@postnewspapers.com.au, lbrtchx@gmail.com
  Subject: Re: making postgresql "source" its data feed from external csv file ...
  In-Reply-To: <4D226652.9040507@postnewspapers.com.au>
  References: <AANLkTikPAu7p-LxsPk=R_H+fY-78gPjsa=_4yqqyEqc0@mail.gmail.com> <4D226652.9040507@postnewspapers.com.au>

* 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