Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: How to just...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 1967 of 2064
Post > Topic >>

Re: How to just "link" to some data feed

by oliver@[EMAIL PROTECTED] (Oliver Jowett) Jun 4, 2008 at 04:04 PM

Albretch Mueller wrote:
> On Tue, Jun 3, 2008 at 11:03 PM, Oliver Jowett <oliver@[EMAIL PROTECTED]
>
wrote:
>> That's essentially the same as the COPY you quoted in your original
email,
>> isn't it? So.. what exactly is it you want to do that COPY doesn't do?
> ~
>  well, actually, not exactly; based on:
> ~
>  http://postgresql.com.cn/docs/8.3/static/sql-copy.html
> ~
>  COPY <table_name> [FROM|TO] <data_feed> <OPTIONS>
> ~

>  im****t/ex****t the data into/out of PG, so you will be essentially
> duplicating the data and having to synch it. This is exactly what I am
> trying to avoid, I would like for PG to handle the data right from the
> data feed

As Dave said, PG won't magically keep the data up to date for you, you 
will need some external process to do the synchronization with the feed. 
That could use COPY if it wanted ..

Then you said:

>  Hmm! Doesn't PG have a way to do something like this, say in MySQL:
> 
> load data local infile 'uniq.csv' into table tblUniq
> fields terminated by ','
> enclosed by '"'
> lines terminated by '\n'
> (uniqName, uniqCity, uniqComments)
> 
>  and even in low end (not real) DBs like MS Access?

But isn't this doing exactly what PG's COPY does - loads data, once, 
from a local file, with no ongoing synchronization?

>  Is there a technical reason for that, or should I apply for a RFE?

Personally I don't see this sort of synchronization as something that 
you want the core DB to be doing anyway. The rules for how you get the 
data, how often you check for updates, how you merge the updates, and so 
on are very application specific.

-O

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 9 Posts in Topic:
How to just "link" to some data feed
lbrtchx@[EMAIL PROTECTED]  2008-06-03 20:04:10 
Re: How to just "link" to some data feed
pg@[EMAIL PROTECTED] (Da  2008-06-03 20:24:47 
Re: How to just "link" to some data feed
lbrtchx@[EMAIL PROTECTED]  2008-06-03 22:59:49 
Re: How to just "link" to some data feed
oliver@[EMAIL PROTECTED]   2008-06-04 15:03:49 
Re: How to just "link" to some data feed
tgl@[EMAIL PROTECTED] (T  2008-06-04 00:16:22 
Re: How to just "link" to some data feed
lbrtchx@[EMAIL PROTECTED]  2008-06-03 23:58:41 
Re: How to just "link" to some data feed
oliver@[EMAIL PROTECTED]   2008-06-04 16:04:13 
Re: How to just "link" to some data feed
heikki@[EMAIL PROTECTED]   2008-06-04 11:19:08 
Re: How to just "link" to some data feed
tivvpgsqljdbc@[EMAIL PROT  2008-06-04 11:27:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 10:28:22 CDT 2008.