[GRASS-user] syntax to save r.stats output in posgresql

Hi

how do I save the output of r.stats directly in posgresql?

I normally save as csv but I have now a huge number of records that I need to process in posgresql first

my data (grass working env) are already connected to posgress

Thanks

Grazia

Hei Grazia,

I never tried it, but Postgresql COPY FROM PROGRAM should work I guess.

See: http://www.postgresql.org/docs/9.4/static/sql-copy.html

Cheers

Stefan

ยทยทยท

Hi

how do I save the output of r.stats directly in posgresql?

I normally save as csv but I have now a huge number of records that I need to process in posgresql first

my data (grass working env) are already connected to posgress

Thanks

Grazia