timescaledb/.unreleased/bugfix_5774
Jan Nidzwetzki 9c7ae3e8a9 Fixed two bugs in decompression sorted merge code
SQLSmith found two bugs in the compression sorted merge code.

* The unused_batch_states are not initialized properly. Therefore,
  non-existing unused batch states can be part of the BMS. This patch
  fixes the initialization.

* For performance reasons, We reuse the same TupleDesc across all
  TupleTableSlots. PostgreSQL sometimes uses TupleDesc data structures
  with active reference counting. The way we use the TupleDesc
  structures collides with the reference counting of PostgreSQL. This
  patch introduces a private TupleDesc copy without reference counting.
2023-06-12 20:30:13 +02:00

2 lines
64 B
Plaintext

Fixes: #5774 Fixed two bugs in decompression sorted merge code