Re: postgres external table - Mailing list pgsql-general

From Greg Smith
Subject Re: postgres external table
Date
Msg-id 4B5464D0.5080104@2ndquadrant.com
Whole thread Raw
In response to Re: postgres external table  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: postgres external table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
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.

So the quick answer is no, there is no built-in external table support
in PostgreSQL; normally people load the data using COPY instead.
There's a work in progress on this topic at
http://pgfoundry.org/projects/pgexternaltable/ , but it's extremely
rough at this point and I'm not sure if it's even moving in the right
direction--the main project would do something like this via SQL/MED,
and I don't think that's how the prototype is being built at all.

The only PostgreSQL-based product I'm aware of that has working external
table support already is Greenplum DB.

--
Greg Smith    2ndQuadrant   Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com  www.2ndQuadrant.com


pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Incorrect FTS query results with GIN index
Next
From: Tom Lane
Date:
Subject: Re: postgres external table