小编moh*_*imi的帖子

SQLSTATE[08006] [7] FATAL:数据库系统处于恢复模式

我对 PostgreSQL 和 PostGIS 有一些问题。

在使用特殊光栅文件上的一些坐标运行以下查询后,我收到错误。

直到上周,它都运行良好。

查询是:

select (ST_ValueCount(ST_Union(ST_Clip(r.rast,r.geom,true),1,'area_sum'))).* from (select * ,(SELECT (ST_SetSRID(ST_GeomFromGeoJSON('{ "type": "Polygon", "coordinates": [[[47.48034200000001,39.13347600000003],[47.49611600000003,39.114525000000015],[47.510418000000016,39.10534899999999],[47.52599799999996,39.08644900000013],[47.54254200000014,39.05803700000013],[47.53256200000004,39.0290940000001],[47.52131200000002,39.00986000000012],[47.49699400000003,38.99015700000001],[47.498607000000106,38.97137000000009],[47.52537600000005,38.96289400000006],[47.52689400000003,38.94405700000004],[47.54134800000014,38.92563300000012],[47.529907000000094,38.906041000000016],[47.519521,38.87627100000009],[47.521041000000025,38.85683000000006],[47.54817600000001,38.83865400000002],[47.58924400000001,38.80162500000006],[47.59110200000009,38.762773000000095],......]]}'), 4326)))as geom from public.layer where filename in ( 'myrasterfile.tif') ) as r where ST_Intersects(r.rast,r.geom))
Run Code Online (Sandbox Code Playgroud)

错误是:

SQLSTATE[08006] [7] FATAL:  the database system is in recovery mode
Run Code Online (Sandbox Code Playgroud)

为什么我的 PostgreSQL 实例在此查询过程中进入恢复模式?

我应该怎么办?

postgresql php postgis

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

php ×1

postgis ×1

postgresql ×1