Re: postgres external table - Mailing list pgsql-general

From Vincenzo Romano
Subject Re: postgres external table
Date
Msg-id 3eff28921001180913m54d17a4at5a92220ee41401e3@mail.gmail.com
Whole thread Raw
In response to Re: postgres external table  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: postgres external table  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
2010/1/18 Tom Lane <tgl@sss.pgh.pa.us>:
> Greg Smith <greg@2ndquadrant.com> writes:
>> Craig Ringer wrote:
>>> For those non-Oracle users among us, what's an external table?
>
>> External tables let you map a text file directly to a table without
>> explicitly loading it.  In PostgreSQL, if you have data in a CSV file,
>> usually you'd import it with COPY before you'd use it.  If external
>> tables were available, you'd just say there's an external table as a CSV
>> file and you could start running queries against it.
>
> I'm finding it hard to visualize a use-case for that.  We must postulate
> that the table is so big that you don't want to import it, and yet you
> don't feel a need to have any index on it.  Which among other things
> implies that every query will seqscan the whole table.  Where's the
> savings?
>
>                        regards, tom lane
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

Another case, Tom, could be when the file is updated from a non-DB
application and you need to synchronize
the data with other DB applications ...

--
Vincenzo Romano
NotOrAnd Information Technologies
NON QVIETIS MARIBVS NAVTA PERITVS

pgsql-general by date:

Previous
From: Greg Smith
Date:
Subject: Re: postgres external table
Next
From: Martin Flahault
Date:
Subject: Re: Collate order on Mac OS X, text with diacritics in UTF-8