postgresql/src/backend/access
Alvaro Herrera 0f5505a881
Remove pointless HeapTupleHeaderIndicatesMovedPartitions calls
Pavan Deolasee recently noted that a few of the
HeapTupleHeaderIndicatesMovedPartitions calls added by commit
5db6df0c01 are useless, since they are done after comparing t_self
with t_ctid.  But because t_self can never be set to the magical values
that indicate that the tuple moved partition, this can never succeed: if
the first test fails (so we know t_self equals t_ctid), necessarily the
second test will also fail.

So these checks can be removed and no harm is done.  There's no bug
here, just a code legibility issue.

Reported-by: Pavan Deolasee <pavan.deolasee@gmail.com>
Discussion: https://postgr.es/m/20200929164411.GA15497@alvherre.pgsql
2021-02-22 16:51:44 -03:00
..
brin Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
common Fix permission checks on constraint violation errors on partitions. 2021-02-08 11:01:51 +02:00
gin ReadNewTransactionId() -> ReadNextTransactionId(). 2021-02-15 13:17:02 +13:00
gist README/C-comment: document GiST's NSN value 2021-02-13 13:50:49 -05:00
hash Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
heap Remove pointless HeapTupleHeaderIndicatesMovedPartitions calls 2021-02-22 16:51:44 -03:00
index Fix GiST index deletion assert issue. 2021-01-26 23:24:37 -08:00
nbtree Add nbtree README section on page recycling. 2021-02-18 21:16:33 -08:00
rmgrdesc Enhance nbtree index tuple deletion. 2021-01-13 09:21:32 -08:00
spgist Pass down "logically unchanged index" hint. 2021-01-13 08:11:00 -08:00
table Enhance nbtree index tuple deletion. 2021-01-13 09:21:32 -08:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Initialize atomic variable waitStart in PGPROC, at postmaster startup. 2021-02-22 18:25:00 +09:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00