summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Geoghegan2018-08-03 21:44:26 +0000
committerPeter Geoghegan2018-08-03 21:44:26 +0000
commit0229e087df2ac050f53140fd7497d0e70943d16f (patch)
treeb8026a131e10e19756091d1b0cabd263d250f7eb /doc/src
parentdfc71a1b2567f9d43ba53fce6da4e381c0571c7c (diff)
Add table relcache invalidation to index builds.
It's necessary to make sure that owning tables have a relcache invalidation prior to advancing the command counter to make newly-entered catalog tuples for the index visible. inval.c must be able to maintain the consistency of the local caches in the event of transaction abort. There is usually only a problem when CREATE INDEX transactions abort, since there is a generic invalidation once we reach index_update_stats(). This bug is of long standing. Problems were made much more likely by the addition of parallel CREATE INDEX (commit 9da0cc35284), but it is strongly suspected that similar problems can be triggered without involving plan_create_index_workers(). (plan_create_index_workers() triggers a relcache build or rebuild, which previously only happened in rare edge cases.) Author: Peter Geoghegan Reported-By: Luca Ferrari Diagnosed-By: Andres Freund Reviewed-By: Andres Freund Discussion: https://postgr.es/m/CAKoxK+5fVodiCtMsXKV_1YAKXbzwSfp7DgDqUmcUAzeAhf=HEQ@mail.gmail.com Backpatch: 9.3-
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions