diff options
author | Amit Kapila <akapila@postgresql.org> | 2021-01-13 07:46:11 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2021-01-13 07:46:11 +0530 |
commit | bea449c635c0e68e21610593594c1e5d52842cdd (patch) | |
tree | 3bb08390afd7bbcc4f846b3cfa96efd2dc24f05c /src/tutorial/complex.c | |
parent | fce7d0e6efbef304e81846c75eddf73099628d10 (diff) | |
download | postgresql-bea449c635c0e68e21610593594c1e5d52842cdd.tar.gz postgresql-bea449c635c0e68e21610593594c1e5d52842cdd.zip |
Optimize DropRelFileNodesAllBuffers() for recovery.
Similar to commit d6ad34f341, this patch optimizes
DropRelFileNodesAllBuffers() by avoiding the complete buffer pool scan and
instead find the buffers to be invalidated by doing lookups in the
BufMapping table.
This optimization helps operations where the relation files need to be
removed like Truncate, Drop, Abort of Create Table, etc.
Author: Kirk Jamison
Reviewed-by: Kyotaro Horiguchi, Takayuki Tsunakawa, and Amit Kapila
Tested-By: Haiying Tang
Discussion: https://postgr.es/m/OSBPR01MB3207DCA7EC725FDD661B3EDAEF660@OSBPR01MB3207.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions