Remove deadcode of locally_opened check.
`locally_opened` is replaced by `local_estate` in postgres by the following commit: commit 817946bb Author: Tom Lane <tgl@sss.pgh.pa.us> Date: Wed Aug 15 21:39:50 2007 +0000 Arrange to cache a ResultRelInfo in the executor's EState for relations that are not one of the query's defined result relations, but nonetheless have triggers fired against them while the query is active. This was formerly impossible but can now occur because of my recent patch to fix the firing order for RI triggers. Caching a ResultRelInfo avoids duplicating work by repeatedly opening and closing the same relation, and also allows EXPLAIN ANALYZE to "see" and report on these extra triggers. Use the same mechanism to cache open relations when firing deferred triggers at transaction shutdown; this replaces the former one-element-cache strategy used in that case, and should improve performance a bit when there are deferred triggers on a number of relations. The deadcode was introduced by merge with 8.3, but the code was already removed in the original commit. Signed-off-by: NXin Zhang <xzhang@pivotal.io>
Showing
想要评论请 注册 或 登录