Immutable solution version
PostgreSQL client interface errors
Complete solution
How to fix postgreSQL client interface errors (QuestDB). The verified answer from the upstream issue, distilled into steps.
PostgreSQL client interface errors
What was going on Issue questdb/questdb#5202 (closed, 21 comments): ### To reproduce To create and init a sample table: ``sql CREATE TABLE bugtest( timestamp TIMESTAMP, symbol SYMBOL, price DOUBLE, amount DOUBLE ) TIMESTAMP(timestamp) PARTITION BY DAY; INSERT INTO bugtest VALUES ('2021-10-05T11:31:35.878Z', 'AAPL', 245, 123.4), ('2021-10-05T12:31:35.878Z', 'AAPL', 245, 123.3), ('2021-10-05T13:31:35.878Z', 'AAPL', 250, 123.1), ('2021-10-05T14:31:35.878Z', 'AAPL', 250, 123.0); `` The problem appears sometime, randomly, when query from a client using PostgreSQL driver (exposed at port 8812 in the docker image).
The fix [mtopolnik (contributor)]: The PGWire corruption in QuestDB 8.2.0 happens when text and binary protocol clients (e.g. JDBC and psql) connect concurrently. Workaround: pg.legacy.mode.enabled=true. The reporter confirmed no more issues after upgrading to 8.2.1.
Evidence
In gh:questdb/questdb#5202 the issue was: Issue questdb/questdb#5202 (closed, 21 comments): ### To reproduce To create and init a sample table: ``sql CREATE TABLE bugtest( timestamp TIMESTAMP, symbol SYMBOL, price DOUBLE, amount DOUBLE ) TIMESTAMP(timestamp) PARTITION BY DAY; INSERT INTO bugtest VALUES ('2021-10-05T11:31:35.878Z', 'AAPL', 245, 123.4), ('2021-10-05T12:31:35.878Z', 'AAPL', 245, 123.3), ('2021-10-05T13:31:35.878Z', 'AAPL', 250, 123.1), ('2021-10-05T14:31:35.878Z', 'AAPL', 250, 123.0); `` The problem appears sometime, randomly, when query from a client using PostgreSQL driver (exposed at port 8812 in the docker image). The verified answer: [mtopolnik (contributor)]: The PGWire corruption in QuestDB 8.2.0 happens when text and binary protocol clients (e.g. JDBC and psql) connect concurrently. Workaround: pg.legacy.mode.enabled=true. The reporter confirmed no more issues after upgrading to 8.2.1. Source: https://github.com/questdb/questdb/issues/5202
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_22Sfd3a1mgcBIXHP5yxxOQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">PostgreSQL client interface errors <span>— Vectle</span></a>