Re: postgres external table

Поиск
Список
Период
Сортировка
Искать
От
Greg Smith
Тема
Re: postgres external table
Дата
Msg-id
4B5464D0.5080104@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
postgres external table Amy Smith <vah123@gmail.com>
Re: postgres external table David Fetter <david@fetter.org>
Re: postgres external table Craig Ringer <craig@postnewspapers.com.au>
Re: postgres external table Greg Smith <greg@2ndquadrant.com>
Re: postgres external table Tom Lane <tgl@sss.pgh.pa.us>
Re: postgres external table Sam Mason <sam@samason.me.uk>
Re: postgres external table Vincenzo Romano <vincenzo.romano@notorand.it>
Re: postgres external table Craig Ringer <craig@postnewspapers.com.au>
Re: postgres external table Greg Stark <gsstark@mit.edu>
Re: postgres external table Jayadevan M <Jayadevan.Maymala@ibsplc.com>
Re: postgres external table Alban Hertroys <dalroi@solfertje.student.utwente.nl>
Re: postgres external table Jayadevan M <Jayadevan.Maymala@ibsplc.com>
Re: postgres external table Greg Smith <greg@2ndquadrant.com>
Re: postgres external table Greg Stark <gsstark@mit.edu>
Re: postgres external table Greg Smith <greg@2ndquadrant.com>
Re: postgres external table Scott Marlowe <scott.marlowe@gmail.com>
Re: postgres external table Jayadevan M <Jayadevan.Maymala@ibsplc.com>
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 по дате отправления
От: Teodor Sigaev
Дата:
От: Tom Lane
Дата:
Сообщение: Re: postgres external table
FAQ