Using Postgresql in clustered database (stado) on two nodes, I want to test this query:
select id,position,timestamp from table t1 WHERE id!=0 AND ST_Intersects ((Select ST_Buffer_Meters(ST_SetSRID(ST_MakePoint(61.4019,15.218205), 4326) ,1160006)),position) AND timestamp Between '2013-10-01' and '2013-12-30';
When I run it in command line or psql (on coordinator), I get this error:
Encountered ")" at line 1, column 171.
While other sql commands (insert, update, select... etc) are working fine. also Geometry columns seems okay in the table so i don't think there is a problem with installing PostGIS.