Re: making postgresql "source" its data feed from external csv file ...
От | Craig Ringer |
---|---|
Тема | Re: making postgresql "source" its data feed from external csv file ... |
Дата | |
Msg-id | 4D226652.9040507@postnewspapers.com.au обсуждение исходный текст |
Ответ на | making postgresql "source" its data feed from external csv file ... (Albretch Mueller <lbrtchx@gmail.com>) |
Ответы |
Re: making postgresql "source" its data feed from external csv
file ...
|
Список | pgsql-jdbc |
On 01/04/2011 09:55 AM, Albretch Mueller wrote: > As I understand postgresql "COPY FROM" does in effect copy the data > to the DBMS, but what I need is for the DBMS to "source" its data feed > with the outer file and synchronize it as it changes without having to > run "COPY TO". Is this possible? This way I can keep the data in a way > that I can try on any DBMS No, that's not currently possible. What you describe is covered by SQL/MED. There's ongoing work to implement SQL/MED for 9.1 / 9.2, but there is no support for it in any current release version of PostgreSQL. SQL/MED is intended for a lot more than just accessing flat files, but should be capable of that. There's a reason relational databases don't store their backing data as CSV files - because they're *SLOW* to work with, in particular to update. You can expect horribly slow write performance with any scheme like this even if you do get it working. -- Craig Ringer
В списке pgsql-jdbc по дате отправления: