Skip to content

Commit

Permalink
Make remote COPY calls interruptible
Browse files Browse the repository at this point in the history
Refactor COPY code for both "in" and "out" mode so that it is
non-blocking and interruptible. This will allow canceling queries and
ingest paths that use COPY between the access node and data
nodes. Canceling can be done using statement timeouts or user
interrupts (ctrl-c).

Most of the COPY-related code (that calls libpq functions) has been
moved to the remote connection module. Previously, similar code was
duplicated across multiple locations.

Closes timescale#4958
  • Loading branch information
erimatnor committed Feb 13, 2023
1 parent 9ec11d8 commit d61be4e
Show file tree
Hide file tree
Showing 8 changed files with 538 additions and 283 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ accidentally triggering the load of a previous DB version.**
* #5246 Make connection establishment interruptible
* #5253 Make data node command execution interruptible
* #5243 Enable real-time aggregation for continuous aggregates with joins
* #5256 Make remote COPY calls interruptible

**Bugfixes**
* #4926 Fix corruption when inserting into compressed chunks
Expand Down
Loading

0 comments on commit d61be4e

Please sign in to comment.