https://questdb.io logo
Title
s

Super Richman

04/21/2023, 12:35 PM
when insert
2023-04-21T12:32:27.327912Z E i.q.c.p.PGConnectionContext undersized receive buffer or someone is abusing protocol
😾
b

Bolek Ziobrowski

04/21/2023, 12:48 PM
Please elaborate .
You might be sending a super-long sql text (insert with multiple values) and filling the receive buffer .
If you're inserting lots of data via pg wire then use prepared statements and reasonably-sized batch .
s

Super Richman

04/21/2023, 2:44 PM
2023-04-21T12:32:27.327523Z I i.q.c.p.PGConnectionContext parse [fd=7260, q=DISCARD ALL]
2023-04-21T12:32:27.327614Z I i.q.c.p.PGConnectionContext parse [fd=7260, q=INSERT INTO Models VALUES ($1,to_timezone(systimestamp(),'America/New_York'),$2,$3,$4,$5,$6,$7,$8)]
2023-04-21T12:32:27.327912Z E i.q.c.p.PGConnectionContext undersized receive buffer or someone is abusing protocol
2023-04-21T12:32:27.327922Z I pg-server scheduling disconnect [fd=7260, reason=7]
2023-04-21T12:32:27.327961Z I pg-server disconnected [ip=127.0.0.1, fd=7260, src=queue]
two binary... maybe thats the problem?
now it is acting like the data is inserted when actually it isn't 😕 only some is inserted and I don't have an indication for which. ExecuteNonQuery() returns 1
b

Bolek Ziobrowski

04/24/2023, 7:53 AM
Regarding previous error - can you create a reproducer ? I'm not familiar with npgsql but I know that insert with positional bind variables does work . As for the last remark - data inserted with
insert into ... values ()
statement isn't visible until transaction commit, so please check how you handle transactions in the code .