Re: Postgresql-fdw - Mailing list pgsql-general

From Rader, David
Subject Re: Postgresql-fdw
Date
Msg-id CAABt7R7K-EAzZVzT5rQM0n0ajWXRBxPFqZiSxcfotcd1CKByDA@mail.gmail.com
Whole thread Raw
In response to Re: Postgresql-fdw  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
On Mon, May 23, 2016 at 1:52 AM, aluka raju <alukaraju2894@gmail.com> wrote:
I have data storage in flat files (structured and unstructured) . I want to run sql queries on that , so i am looking in to postgresql how to use fdw on the data that i have. 


You could use the file_fdw to "attach" the files as foreign tables. At least for the structured ones (CSV, delimited). As noted by other replies, this won't be efficient, but if you are doing analytics against all the data in the file or just scanning the data 1 time this works well:

pgsql-general by date:

Previous
From: Guyren Howe
Date:
Subject: FIRST_VALUE: need to group by argument?
Next
From: "David G. Johnston"
Date:
Subject: Re: FIRST_VALUE: need to group by argument?