Repository navigation
Backlog
Labels
Description
Postgrex (Elixir client) attempts to stream data over the Extended Query protocol in a way that XTDB doesn't currently support.
The following currently fails with {"category":"cognitect.anomalies\/incorrect","code":"xtdb.pgwire\/copy-not-in-progress","message":"COPY IN not in progress, cannot write data"}
def test_copy_from_stdin do
IO.puts("\n=== Testing COPY FROM STDIN with copy_data option ===")
{:ok, pid} = Postgrex.start_link(hostname: "xtdb", port: 5432, database: "xtdb")
try do
# Setup test table
IO.puts("Setting up test table...")
Postgrex.query!(pid, "INSERT INTO copy_test RECORDS {_id: 'init', name: 'Init'}", [])
# Test data in transit-json format with correct xt/id keyword
test_data1 = "[\"^ \",\"~:xt/id\",\"copy_1\",\"~:name\",\"First Copy\",\"~:active\",true]"
test_data2 = "[\"^ \",\"~:xt/id\",\"copy_2\",\"~:name\",\"Second Copy\",\"~:active\",false]"
IO.puts("Attempting COPY FROM STDIN with streaming...")
IO.puts("Data to copy:")
IO.puts(" #{test_data1}")
IO.puts(" #{test_data2}")
# Use streaming approach with prepare and copy_data: true
copy_sql = "COPY copy_test FROM STDIN WITH (FORMAT 'transit-json')"
case Postgrex.prepare(pid, "", copy_sql, [copy_data: true]) do
{:ok, query} ->
# Use transaction with streaming
result = Postgrex.transaction(pid, fn(conn) ->
try do
stream = Postgrex.stream(conn, query, [])
IO.puts("Streaming first batch of data...")
stream_result = Enum.into([test_data1 <> "\n", test_data2 <> "\n"], stream)
if stream_result == stream do
IO.puts("✓ Data streamed successfully")
else
IO.puts("⚠ Stream result: #{inspect(stream_result)}")
end
...TRACE logs:
xtdb | 07:20:50.939 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 1, :name :msg-parse-complete}
xtdb | 07:20:50.939 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:describe-type :prepared-stmt, :describe-name , :msg-name :msg-describe}}
xtdb | 07:20:50.940 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - sending parameter description - {:param-oids []}
xtdb | 07:20:50.941 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 t, :name :msg-parameter-description}
xtdb | 07:20:50.941 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 n, :name :msg-no-data}
xtdb | 07:20:50.941 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-flush}}
xtdb | 07:20:50.942 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:portal-name , :stmt-name , :arg-format [], :args [], :result-format [], :msg-name :msg-bind}}
xtdb | 07:20:50.943 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 2, :name :msg-bind-complete}
xtdb | 07:20:50.944 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:portal-name , :limit 0, :msg-name :msg-execute}}
xtdb | 07:20:50.945 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 C, :name :msg-command-complete}
xtdb | 07:20:50.945 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:close-type :prepared-stmt, :close-name , :msg-name :msg-close}}
xtdb | 07:20:50.946 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Closing prepared statement {:cid 1, :stmt }
xtdb | 07:20:50.946 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Closing portal {:cid 1, :portal }
xtdb | 07:20:50.946 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 3, :name :msg-close-complete}
xtdb | 07:20:50.946 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-sync}}
xtdb | 07:20:51.015 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 Z, :name :msg-ready}
xtdb | 07:20:51.018 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:stmt-name , :query COPY copy_test FROM STDIN WITH (FORMAT 'transit-json'), :param-oids [], :msg-name :msg-parse}}
xtdb | 07:20:51.018 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - Interpreting SQL: COPY copy_test FROM STDIN WITH (FORMAT 'transit-json')
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 1, :name :msg-parse-complete}
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:describe-type :prepared-stmt, :describe-name , :msg-name :msg-describe}}
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 n, :name :msg-no-data}
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:close-type :prepared-stmt, :close-name , :msg-name :msg-close}}
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Closing prepared statement {:cid 1, :stmt }
xtdb | 07:20:51.023 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 3, :name :msg-close-complete}
xtdb | 07:20:51.024 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-sync}}
xtdb | 07:20:51.024 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 Z, :name :msg-ready}
xtdb | 07:20:51.024 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:query BEGIN, :msg-name :msg-simple-query}}
xtdb | 07:20:51.024 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - Interpreting SQL: BEGIN
xtdb | 07:20:51.027 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 C, :name :msg-command-complete}
xtdb | 07:20:51.027 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 Z, :name :msg-ready}
xtdb | 07:20:51.038 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:stmt-name , :query COPY copy_test FROM STDIN WITH (FORMAT 'transit-json'), :param-oids [], :msg-name :msg-parse}}
xtdb | 07:20:51.038 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - Interpreting SQL: COPY copy_test FROM STDIN WITH (FORMAT 'transit-json')
xtdb | 07:20:51.043 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 1, :name :msg-parse-complete}
xtdb | 07:20:51.043 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:describe-type :prepared-stmt, :describe-name , :msg-name :msg-describe}}
xtdb | 07:20:51.043 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 n, :name :msg-no-data}
xtdb | 07:20:51.044 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-flush}}
xtdb | 07:20:51.044 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:portal-name 4I, :stmt-name , :arg-format [], :args [], :result-format [], :msg-name :msg-bind}}
xtdb | 07:20:51.044 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message {:char8 2, :name :msg-bind-complete}
xtdb | 07:20:51.045 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-sync}}
xtdb | 07:20:51.045 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Closing portal {:cid 1, :portal 4I}
xtdb | 07:20:51.045 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 Z, :name :msg-ready}
xtdb | 07:20:51.049 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:portal-name 4I, :limit 0, :msg-name :msg-execute}}
xtdb | 07:20:51.053 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - error processing message: no such portal
xtdb | xtdb.error.Fault: no such portal
xtdb | at xtdb.error$fault.invokeStatic(error.clj:90)
xtdb | at xtdb.error$fault.invoke(error.clj:82)
xtdb | at xtdb.error$eval752$fn__753.invoke(error.clj:204)
xtdb | at xtdb.error$eval671$fn__672$G__662__679.invoke(error.clj:14)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1395)
xtdb | at xtdb.pgwire$handle_msg.invoke(pgwire.clj:1391)
xtdb | at xtdb.pgwire$conn_loop.invokeStatic(pgwire.clj:1444)
xtdb | at xtdb.pgwire$conn_loop.invoke(pgwire.clj:1415)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1494)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | Caused by: clojure.lang.ExceptionInfo: no such portal
xtdb | at xtdb.pgwire.io$err_protocol_violation.invokeStatic(io.clj:115)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invoke(io.clj:112)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invokeStatic(io.clj:113)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invoke(io.clj:112)
xtdb | at xtdb.pgwire$eval27639$fn__27642.invoke(pgwire.clj:1270)
xtdb | at clojure.lang.MultiFn.invoke(MultiFn.java:234)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1398)
xtdb | ... 12 common frames omitted
xtdb | 07:20:51.057 [pgwire-connection--pool-1-thread-1] ERROR xtdb.pgwire - Uncaught exception processing message
xtdb | xtdb.error.Fault: no such portal
xtdb | at xtdb.error$fault.invokeStatic(error.clj:90)
xtdb | at xtdb.error$fault.invoke(error.clj:82)
xtdb | at xtdb.error$eval752$fn__753.invoke(error.clj:204)
xtdb | at xtdb.error$eval671$fn__672$G__662__679.invoke(error.clj:14)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1395)
xtdb | at xtdb.pgwire$handle_msg.invoke(pgwire.clj:1391)
xtdb | at xtdb.pgwire$conn_loop.invokeStatic(pgwire.clj:1444)
xtdb | at xtdb.pgwire$conn_loop.invoke(pgwire.clj:1415)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1494)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | Caused by: clojure.lang.ExceptionInfo: no such portal
xtdb | at xtdb.pgwire.io$err_protocol_violation.invokeStatic(io.clj:115)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invoke(io.clj:112)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invokeStatic(io.clj:113)
xtdb | at xtdb.pgwire.io$err_protocol_violation.invoke(io.clj:112)
xtdb | at xtdb.pgwire$eval27639$fn__27642.invoke(pgwire.clj:1270)
xtdb | at clojure.lang.MultiFn.invoke(MultiFn.java:234)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1398)
xtdb | ... 12 common frames omitted
xtdb | 07:20:51.061 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 E, :name :msg-error-response}
xtdb | 07:20:51.063 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:data #object[[B 0x6dc2eb5c [B@6dc2eb5c], :msg-name :msg-copy-data}}
xtdb | 07:20:51.064 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - error processing message: COPY IN not in progress, cannot write data
xtdb | xtdb.error.Incorrect: COPY IN not in progress, cannot write data
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:25)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:18)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.pgwire$eval27682$fn__27685.invoke(pgwire.clj:1329)
xtdb | at clojure.lang.MultiFn.invoke(MultiFn.java:234)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1398)
xtdb | at xtdb.pgwire$handle_msg.invoke(pgwire.clj:1391)
xtdb | at xtdb.pgwire$conn_loop.invokeStatic(pgwire.clj:1444)
xtdb | at xtdb.pgwire$conn_loop.invoke(pgwire.clj:1415)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1494)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | 07:20:51.065 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 E, :name :msg-error-response}
xtdb | 07:20:51.066 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:data #object[[B 0x3b232e80 [B@3b232e80], :msg-name :msg-copy-data}}
xtdb | 07:20:51.066 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - error processing message: COPY IN not in progress, cannot write data
xtdb | xtdb.error.Incorrect: COPY IN not in progress, cannot write data
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:25)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:18)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.pgwire$eval27682$fn__27685.invoke(pgwire.clj:1329)
xtdb | at clojure.lang.MultiFn.invoke(MultiFn.java:234)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1398)
xtdb | at xtdb.pgwire$handle_msg.invoke(pgwire.clj:1391)
xtdb | at xtdb.pgwire$conn_loop.invokeStatic(pgwire.clj:1444)
xtdb | at xtdb.pgwire$conn_loop.invoke(pgwire.clj:1415)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1494)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | 07:20:51.067 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 E, :name :msg-error-response}
xtdb | 07:20:51.067 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-copy-done}}
xtdb | 07:20:51.067 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - error processing message: COPY IN not in progress, cannot write data
xtdb | xtdb.error.Incorrect: COPY IN not in progress, cannot write data
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:25)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.error$incorrect.invokeStatic(error.clj:18)
xtdb | at xtdb.error$incorrect.invoke(error.clj:17)
xtdb | at xtdb.pgwire$eval27692$fn__27694.invoke(pgwire.clj:1334)
xtdb | at clojure.lang.MultiFn.invoke(MultiFn.java:234)
xtdb | at xtdb.pgwire$handle_msg.invokeStatic(pgwire.clj:1398)
xtdb | at xtdb.pgwire$handle_msg.invoke(pgwire.clj:1391)
xtdb | at xtdb.pgwire$conn_loop.invokeStatic(pgwire.clj:1444)
xtdb | at xtdb.pgwire$conn_loop.invoke(pgwire.clj:1415)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1494)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | 07:20:51.068 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 E, :name :msg-error-response}
xtdb | 07:20:51.069 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Read client msg {:cid 1, :msg {:msg-name :msg-sync}}
xtdb | 07:20:51.069 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 Z, :name :msg-ready}
xtdb | 07:20:51.129 [pgwire-connection--pool-1-thread-2] DEBUG xtdb.pgwire - Connection ended {:cid 2}
xtdb | 07:20:51.129 [pgwire-connection--pool-1-thread-1] TRACE xtdb.pgwire - Connection closed by client {:port 5432, :cid 1}
xtdb | 07:20:51.130 [pgwire-connection--pool-1-thread-1] DEBUG xtdb.pgwire - Connection ended {:cid 1}
xtdb | 07:20:51.137 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 R, :name :msg-auth}
xtdb | 07:20:51.138 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.139 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.140 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.142 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.143 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.143 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.144 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.148 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 S, :name :msg-parameter-status}
xtdb | 07:20:51.177 [pgwire-connection--pool-1-thread-3] ERROR xtdb.pgwire - Uncaught exception processing message
xtdb | xtdb.error.Fault: Broken pipe
xtdb | at xtdb.error$fault.invokeStatic(error.clj:90)
xtdb | at xtdb.error$fault.invoke(error.clj:82)
xtdb | at xtdb.error$eval752$fn__753.invoke(error.clj:204)
xtdb | at xtdb.error$eval671$fn__672$G__662__679.invoke(error.clj:14)
xtdb | at xtdb.pgwire$send_ex.invokeStatic(pgwire.clj:254)
xtdb | at xtdb.pgwire$send_ex.invoke(pgwire.clj:250)
xtdb | at xtdb.pgwire$cmd_startup.invokeStatic(pgwire.clj:380)
xtdb | at xtdb.pgwire$cmd_startup.invoke(pgwire.clj:356)
xtdb | at xtdb.pgwire$connect$fn__27758.invoke(pgwire.clj:1476)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1463)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
xtdb | Caused by: java.net.SocketException: Broken pipe
xtdb | at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
xtdb | at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:62)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.tryWrite(NioSocketImpl.java:394)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:410)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
xtdb | at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:819)
xtdb | at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1195)
xtdb | at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
xtdb | at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
xtdb | at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:240)
xtdb | at java.base/java.io.DataOutputStream.flush(DataOutputStream.java:131)
xtdb | at xtdb.pgwire.io.SocketFrontend.send_client_msg_BANG_(io.clj:137)
xtdb | at xtdb.pgwire.io$cmd_write_msg.invokeStatic(io.clj:79)
xtdb | at xtdb.pgwire.io$cmd_write_msg.invoke(io.clj:73)
xtdb | at xtdb.pgwire$set_session_parameter.invokeStatic(pgwire.clj:205)
xtdb | at xtdb.pgwire$set_session_parameter.invoke(pgwire.clj:199)
xtdb | at xtdb.pgwire$startup_ok.invokeStatic(pgwire.clj:293)
xtdb | at xtdb.pgwire$startup_ok.invoke(pgwire.clj:282)
xtdb | at xtdb.pgwire$cmd_startup_pg30.invokeStatic(pgwire.clj:311)
xtdb | at xtdb.pgwire$cmd_startup_pg30.invoke(pgwire.clj:300)
xtdb | at xtdb.pgwire$cmd_startup.invokeStatic(pgwire.clj:370)
xtdb | ... 11 common frames omitted
xtdb | 07:20:51.181 [pgwire-connection--pool-1-thread-3] TRACE xtdb.pgwire.io - Writing server message (with body) {:char8 E, :name :msg-error-response}
xtdb | 07:20:51.185 [pgwire-connection--pool-1-thread-3] WARN xtdb.pgwire - error on conn startup
xtdb | java.net.SocketException: Broken pipe
xtdb | at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
xtdb | at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:62)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.tryWrite(NioSocketImpl.java:394)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:410)
xtdb | at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
xtdb | at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:819)
xtdb | at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1195)
xtdb | at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
xtdb | at java.base/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
xtdb | at java.base/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:240)
xtdb | at java.base/java.io.DataOutputStream.flush(DataOutputStream.java:131)
xtdb | at xtdb.pgwire.io.SocketFrontend.send_client_msg_BANG_(io.clj:137)
xtdb | at xtdb.pgwire.io$cmd_write_msg.invokeStatic(io.clj:79)
xtdb | at xtdb.pgwire.io$cmd_write_msg.invoke(io.clj:73)
xtdb | at xtdb.pgwire$send_ex.invokeStatic(pgwire.clj:256)
xtdb | at xtdb.pgwire$send_ex.invoke(pgwire.clj:250)
xtdb | at xtdb.pgwire$cmd_startup.invokeStatic(pgwire.clj:380)
xtdb | at xtdb.pgwire$cmd_startup.invoke(pgwire.clj:356)
xtdb | at xtdb.pgwire$connect$fn__27758.invoke(pgwire.clj:1476)
xtdb | at xtdb.pgwire$connect.invokeStatic(pgwire.clj:1463)
xtdb | at xtdb.pgwire$connect.invoke(pgwire.clj:1454)
xtdb | at xtdb.pgwire$accept_loop$fn__27775$fn__27776$fn__27777.invoke(pgwire.clj:1539)
xtdb | at clojure.lang.AFn.run(AFn.java:22)
xtdb | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
xtdb | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
xtdb | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
xtdb | at java.base/java.lang.Thread.run(Thread.java:1583)
Activity
failing COPY in Elixir - xtdb/xtdb#4833
fix(pgwire): a CopyFail outside copy mode draws no reply