aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2020-10-15 08:17:51 +0530
committerAmit Kapila <akapila@postgresql.org>2020-10-15 08:17:51 +0530
commitd7eb52d7181d83cf2363570f7a205b8eb1008dbc (patch)
treea4f64fb81dcf84ccb3c5fdfb6263e24923442bea /contrib/postgres_fdw/postgres_fdw.c
parent564a410c81b4a9d289c948690a3135d0cd25411b (diff)
downloadpostgresql-d7eb52d7181d83cf2363570f7a205b8eb1008dbc.tar.gz
postgresql-d7eb52d7181d83cf2363570f7a205b8eb1008dbc.zip
Execute invalidation messages for each XLOG_XACT_INVALIDATIONS message
during logical decoding. Prior to commit c55040ccd0 we have no way of knowing the invalidations before commit. So, while decoding we use to execute all the invalidations at each command end as we had no way of knowing which invalidations happened before that command. Due to this, transactions involving large amounts of DDLs use to take more time and also lead to high CPU usage. But now we know specific invalidations at each command end so we execute only required invalidations. It has been observed that decoding of a transaction containing truncation of a table with 1000 partitions would be finished in 1s whereas before this patch it used to take 4-5 minutes. Author: Dilip Kumar Reviewed-by: Amit Kapila and Keisuke Kuroda Discussion: https://postgr.es/m/CANDwggKYveEtXjXjqHA6RL3AKSHMsQyfRY6bK+NqhAWJyw8psQ@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions