Когда я пытаюсь выполнить запрос, похожий на SELECT «выражение» FROM Расчетно-датируемый, журналы postgres в /var/log/postgres/9.6/main/postgresql.main.log показывают ошибку:
ERROR: invalid byte sequence for encoding "UTF8": 0x8f.
2019-09-23 05:36:24.096 -05 [24469] postgres@db STATEMENT: SELECT "expression" FROM calculateddatatable
2019-09-23 05:36:24.112 -05 [24469] postgres@db LOG: duration: 0.217 ms statement: ROLLBACK
2019-09-23 05:36:24.124 -05 [24469] postgres@db LOG: duration: 0.219 ms statement: BEGIN
2019-09-23 05:36:24.147 -05 [24469] postgres@db LOG: duration: 11.307 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.166 -05 [24469] postgres@db LOG: duration: 0.295 ms statement: ROLLBACK
2019-09-23 05:36:24.179 -05 [24469] postgres@db LOG: duration: 0.216 ms statement: BEGIN
2019-09-23 05:36:24.198 -05 [24469] postgres@db LOG: duration: 12.255 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.216 -05 [24469] postgres@smartjoulesdb LOG: duration: 7.436 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.244 -05 [24469] postgres@smartjoulesdb ERROR: invalid byte sequence for encoding "UTF8": 0x89
2019-09-23 05:36:24.256 -05 [24469] postgres@smartjoulesdb LOG: duration: 0.068 ms statement:
2019-09-23 05:36:24.264 -05 [24469] postgres@db ERROR: current transaction is aborted, commands ignored until end of transaction block
2019-09-23 05:36:24.264 -05 [24469] postgres@db STATEMENT: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.287 -05 [24469] postgres@db ERROR: current transaction is aborted, commands ignored until end of transaction block
2019-09-23 05:36:24.287 -05 [24469] postgres@db STATEMENT: SELECT "expression" FROM calculateddatatable
2019-09-23 05:36:24.294 -05 [24469] postgres@db ERROR: current transaction is aborted, commands ignored until end of transaction block
2019-09-23 05:36:24.294 -05 [24469] postgres@db STATEMENT: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.302 -05 [24469] postgres@db ERROR: current transaction is aborted, commands ignored until end of transaction block
2019-09-23 05:36:24.302 -05 [24469] postgres@db STATEMENT: SELECT EXISTS(SELECT 1 FROM calculateddatatable WHERE "componentId"='ssh_15')
2019-09-23 05:36:24.336 -05 [24469] postgres@db LOG: duration: 0.217 ms statement: ROLLBACK
2019-09-23 05:36:24.355 -05 [24469] postgres@db LOG: duration: 0.219 ms statement: BEGIN
2019-09-23 05:36:24.398 -05 [24469] postgres@db LOG: duration: 39.598 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.419 -05 [24469] postgres@db LOG: duration: 0.295 ms statement: ROLLBACK
2019-09-23 05:36:24.436 -05 [24469] postgres@db LOG: duration: 0.280 ms statement: BEGIN
2019-09-23 05:36:24.448 -05 [24469] postgres@db LOG: duration: 7.151 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.483 -05 [24469] postgres@db LOG: duration: 0.355 ms statement: ROLLBACK
2019-09-23 05:36:24.487 -05 [24469] postgres@db LOG: duration: 0.257 ms statement: BEGIN
2019-09-23 05:36:24.502 -05 [24469] postgres@db LOG: duration: 2.332 ms statement: SELECT EXISTS(SELECT 1 FROM calculateddatatable WHERE "componentId"='ssh_12')
2019-09-23 05:36:24.520 -05 [24469] postgres@db LOG: duration: 0.363 ms statement: ROLLBACK
2019-09-23 05:36:24.535 -05 [24469] postgres@db LOG: duration: 0.272 ms statement: BEGIN
2019-09-23 05:36:24.568 -05 [24469] postgres@db LOG: duration: 26.428 ms statement: SELECT DISTINCT "deviceId" FROM devices where "controllerId" = '2701'
2019-09-23 05:36:24.594 -05 [24469] postgres@db LOG: duration: 2.602 ms statement: UPDATE calculateddatatable SET "componentId"='ssh_12', "expression"='67.kva > 0.5', "runMinute"='203574', "timestamp"='1569234960' WHERE "componentId"='ssh_12'
2019-09-23 05:36:24.620 -05 [24469] postgres@db LOG: duration: 10.734 ms statement: COMMIT
2019-09-23 05:36:25.667 -05 [24469] postgres@db LOG: duration: 0.220 ms statement: BEGIN
2019-09-23 05:36:25.687 -05 [24469] postgres@db LOG: duration: 1.917 ms statement: SELECT EXISTS(SELECT 1 FROM calculateddatatable WHERE "componentId"='ssh_9')
2019-09-23 05:36:25.850 -05 [24469] postgres@db LOG: duration: 2.246 ms statement: UPDATE calculateddatatable SET "componentId"='ssh_9', "expression"='147.kva > 0.3', "runMinute"='216719', "timestamp"='1569234960' WHERE "componentId"='ssh_9'
2019-09-23 05:36:25.872 -05 [24469] postgres@db LOG: duration: 4.451 ms statement: COMMIT
2019-09-23 05:37:07.639 -05 [1502] postgres@db LOG: duration: 0.279 ms statement: BEGIN
Iискал везде, я ничего не получил. Может кто-нибудь сказать мне, в чем проблема в моем вопросе и как я выполняю без каких-либо ошибок
Заранее спасибо!