citus/src/include
Onur Tirtir ea61efb63a
Not flush writes until need to read them when doing index-scan on columnar (#5247)
Not flush pending writes if given tid belongs to a "flushed" or
"aborted" stripe write, or to an "in-progress" stripe write of
another backend.

That way, we would reduce the cases where we flush single-tuple
stripes during index scan.

To do that, we follow below steps for index look-up's:

- Do not flush any pending writes and do stripe metadata look-up for
  given tid.
  If tuple with tid is found, then no need to do another look-up
  since we already found the tuple without needing to flush pending
  writes.

- If tuple is not found without flushing pending writes, then we have two
  scenarios:

  -  If given tid belongs to a pending write of my backend, then do stripe
     metadata look-up for given tid. But this time first **flush any pending
     writes**.
     
  -  Otherwise, just return false from `index_fetch_tuple` since flushing
      pending writes wouldn't help.
2021-09-13 18:41:20 +02:00
..
columnar Not flush writes until need to read them when doing index-scan on columnar (#5247) 2021-09-13 18:41:20 +02:00
distributed Fixes bug about int and smallint sequences on MX (#5254) 2021-09-09 23:41:07 +03:00
.gitignore Self-implemented review feedback 2017-04-03 22:55:12 -06:00
citus_config.h.in Remove HAS_TABLEAM config since we dropped pg11 support (#4862) 2021-04-13 10:51:26 +03:00
citus_version.h.in Remove HAS_TABLEAM config since we dropped pg11 support (#4862) 2021-04-13 10:51:26 +03:00