aboutsummaryrefslogtreecommitdiff
path: root/src/backend/jit/llvm/llvmjit_wrap.cpp
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-10-15 11:33:48 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-10-15 11:35:51 -0300
commitb05fe7b442fd185b9705c537adb602b3b9d49518 (patch)
treed3d23a0ee4ce7112fcec554416c358ef3e2cdd22 /src/backend/jit/llvm/llvmjit_wrap.cpp
parentc5b097f8fa69861ab83470c0bfe732ab90df9e62 (diff)
downloadpostgresql-b05fe7b442fd185b9705c537adb602b3b9d49518.tar.gz
postgresql-b05fe7b442fd185b9705c537adb602b3b9d49518.zip
Review logical replication tablesync code
Most importantly, remove optimization in LogicalRepSyncTableStart that skips the normal walrcv_startstreaming/endstreaming dance. The optimization is not critically important for production uses anyway, since it only fires in cases with no activity, and saves an uninteresting amount of work even then. Critically, it obscures bugs by hiding the interesting code path from test cases. Also: in GetSubscriptionRelState, remove pointless relation open; access pg_subscription_rel->srsubstate with GETSTRUCT as is typical rather than SysCacheGetAttr; remove unused 'missing_ok' argument. In wait_for_relation_state_change, use explicit catalog snapshot invalidation rather than obscurely (and expensively) through GetLatestSnapshot. In various places: sprinkle comments more liberally and rewrite a number of them. Other cosmetic code improvements. No backpatch, since no bug is being fixed here. Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Reviewed-by: Petr Jelínek <petr.jelinek@2ndquadrant.com> Discussion: https://postgr.es/m/20201010190637.GA5774@alvherre.pgsql
Diffstat (limited to 'src/backend/jit/llvm/llvmjit_wrap.cpp')
0 files changed, 0 insertions, 0 deletions