postgresql/src/backend/storage
Amit Kapila 9c32e4c350 Clear the local map when not used.
After commit b0eaa4c51b, we use a local map of pages to find the required
space for small relations.  We do clear this map when we have found a block
with enough free space, when we extend the relation, or on transaction
abort so that it can be used next time.  However, we miss to clear it when
we didn't find any pages to try from the map which leads to an assertion
failure when we later tried to use it after relation extension.

In the passing, I have improved some comments in this area.

Reported-by: Tom Lane based on buildfarm results
Author: Amit Kapila
Reviewed-by: John Naylor
Tested-by: Kuntal Ghosh
Discussion: https://postgr.es/m/32368.1551114120@sss.pgh.pa.us
2019-03-01 07:38:47 +05:30
..
buffer Update copyright for 2019 2019-01-02 12:44:25 -05:00
file Tolerate EINVAL when calling fsync() on a directory. 2019-02-24 23:50:20 +13:00
freespace Clear the local map when not used. 2019-03-01 07:38:47 +05:30
ipc Fix race in dsm_unpin_segment() when handles are reused. 2019-02-18 09:58:29 +13:00
large_object Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
lmgr Make release of 2PC identifier and locks consistent in COMMIT PREPARED 2019-02-25 14:19:34 +09:00
page Update copyright for 2019 2019-01-02 12:44:25 -05:00
smgr In bootstrap mode, don't allow the creation of files if they don't already 2019-01-28 07:52:51 +05:30
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00