You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below scenario is also reproduceable on older versions (at least on v10.1.2).
The root cause is that we build the readState when reading the first row, so we don't use the snaphot provided when running DECLARE command.
Even if we've called init_columnar_read_state in begin_read, we would still encounter with this issue when doing index-scan. This is because, index_begin_read doesn't provide a snapshot. For this reason, we have to use the snapshot passed to index_fetch_tuple there, which first calls init_columnar_read_state and that flushes the pending writes of the current xact first ((5, 6), (7, 8)).
Originally posted by @onurctirtir in #5154 (comment)
Below scenario is also reproduceable on older versions (at least on v10.1.2).
The root cause is that we build the
readState
when reading the first row, so we don't use the snaphot provided when runningDECLARE
command.Even if we've called
init_columnar_read_state
inbegin_read
, we would still encounter with this issue when doing index-scan. This is because,index_begin_read
doesn't provide a snapshot. For this reason, we have to use the snapshot passed toindex_fetch_tuple
there, which first callsinit_columnar_read_state
and that flushes the pending writes of the current xact first ((5, 6), (7, 8)).Unfortunately, #5154 wouldn't fix that issue.
The text was updated successfully, but these errors were encountered: