postgresql/src/backend/access
Thomas Munro 323cbe7c7d Remove read_page callback from XLogReader.
Previously, the XLogReader module would fetch new input data using a
callback function.  Redesign the interface so that it tells the caller
to insert more data with a special return value instead.  This API suits
later patches for prefetching, encryption and maybe other future
projects that would otherwise require continually extending the callback
interface.

As incidental cleanup work, move global variables readOff, readLen and
readSegNo inside XlogReaderState.

Author: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Author: Heikki Linnakangas <hlinnaka@iki.fi> (parts of earlier version)
Reviewed-by: Antonin Houska <ah@cybertec.at>
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Takashi Menjo <takashi.menjo@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/20190418.210257.43726183.horiguchi.kyotaro%40lab.ntt.co.jp
2021-04-08 23:20:42 +12:00
..
brin Don't add non-existent pages to bitmap from BRIN 2021-04-07 15:58:36 +02:00
common autovacuum: handle analyze for partitioned tables 2021-04-08 01:19:36 -04:00
gin Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
gist Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
hash Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
heap Teach VACUUM to bypass unnecessary index vacuuming. 2021-04-07 16:14:54 -07:00
index Simplify state managed by VACUUM. 2021-04-05 13:21:44 -07:00
nbtree Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
rmgrdesc Remove tupgone special case from vacuumlazy.c. 2021-04-06 08:49:22 -07:00
spgist Remove redundant memset(0) calls for page init of some index AMs 2021-04-07 14:35:26 +09:00
table Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
tablesample Update copyright for 2021 2021-01-02 13:06:25 -05:00
transam Remove read_page callback from XLogReader. 2021-04-08 23:20:42 +12:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00