Re: PostgreSql Doubt

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSql Doubt
Date: 2016-05-22 00:07:29
Message-ID: 651ebf08-10fe-26c3-dce8-252b35febb5b@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/21/2016 2:22 PM, aluka raju wrote:
>
> I have a data source for example in file format(xml,csv ..etc) , i
> want to use postgresql engine to query select,update,insert using
> foreign data wrappers(fdw).

updating/inserting into a CSV, XML, or whatever flat file will be very
painful, it will require copying the whole file with the new/changed
record in place.

I would recommend instead importing your XML/CSV/etc data into SQL
table(s), do your data operations there, then export the results back as
XML or whatever if you really need it that way.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message dandl 2016-05-22 01:31:51 Re: How to know if SPI or some other API triggered an ERROR.
Previous Message Adrian Klaver 2016-05-21 22:39:19 Re: PostgreSql Doubt