postgresql/src/include
Tomas Vondra c1ec02be1d Reuse BrinDesc and BrinRevmap in brininsert
The brininsert code used to initialize (and destroy) BrinDesc and
BrinRevmap for each tuple, which is not free. This patch initializes
these structures only once, and reuses them for all inserts in the same
command. The data is passed through indexInfo->ii_AmCache.

This also introduces an optional AM callback "aminsertcleanup" that
allows performing custom cleanup in case simply pfree-ing ii_AmCache is
not sufficient (which is the case when the cache contains TupleDesc,
Buffers, and so on).

Author: Soumyadeep Chakraborty
Reviewed-by: Alvaro Herrera, Matthias van de Meent, Tomas Vondra
Discussion: https://postgr.es/m/CAE-ML%2B9r2%3DaO1wwji1sBN9gvPz2xRAtFUGfnffpd0ZqyuzjamA%40mail.gmail.com
2023-11-25 20:27:28 +01:00
..
access Reuse BrinDesc and BrinRevmap in brininsert 2023-11-25 20:27:28 +01:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
bootstrap Stop including parsenodes.h in plannodes.h 2023-11-07 19:26:39 +01:00
catalog Support +/- infinity in the interval data type. 2023-11-14 10:58:49 +00:00
commands Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
common Fix corner-case 64-bit integer subtraction bug on some platforms. 2023-11-09 09:50:23 +00:00
datatype Support +/- infinity in the interval data type. 2023-11-14 10:58:49 +00:00
executor Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
fe_utils Avoid overflow in fe_utils' printTable() 2023-11-21 14:55:29 +01:00
foreign Update copyright for 2023 2023-01-02 15:00:37 -05:00
jit jit: Supply LLVMGlobalGetValueType() for LLVM < 8. 2023-10-19 03:01:55 +13:00
lib simplehash: preserve consistency in case of OOM. 2023-11-17 13:58:16 -08:00
libpq Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
mb Restore proper linkage of pg_char_to_encoding() and friends. 2023-10-07 12:08:10 -04:00
nodes Stop including parsenodes.h in plannodes.h 2023-11-07 19:26:39 +01:00
optimizer Ensure we preprocess expressions before checking their volatility. 2023-11-16 10:05:14 -05:00
parser Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
partitioning Add const to values and nulls arguments 2023-10-10 07:50:43 +02:00
pch Update copyright for 2023 2023-01-02 15:00:37 -05:00
port Fix fallback implementation for pg_atomic_test_set_flag(). 2023-11-15 15:04:18 -06:00
portability instr_time: Represent time as an int64 on all platforms 2023-01-20 21:16:47 -08:00
postmaster Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
regex Fix various typos 2023-04-18 13:23:23 +12:00
replication Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
rewrite Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
snowball Update copyright for 2023 2023-01-02 15:00:37 -05:00
statistics Add macro for maximum statistics target 2023-07-03 07:18:57 +02:00
storage Use ResourceOwner to track WaitEventSets. 2023-11-23 13:31:36 +02:00
tcop Stop including parsenodes.h in plannodes.h 2023-11-07 19:26:39 +01:00
tsearch Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
utils Use ResourceOwner to track WaitEventSets. 2023-11-23 13:31:36 +02:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
c.h Improve const use in zlib-using code 2023-08-07 09:34:38 +02:00
fmgr.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
funcapi.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
getopt_long.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
miscadmin.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_config.h.in Use native CRC instructions on 64-bit LoongArch 2023-08-10 11:36:15 +07:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.meson meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
pg_config_manual.h Update PG_CACHE_LINE_SIZE description. 2023-07-03 11:56:30 +03:00
pg_getopt.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_trace.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat.h Introduce pg_stat_checkpointer 2023-10-30 09:47:16 +09:00
pgtar.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pgtime.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
port.h Rename port/thread.c to port/user.c. 2023-07-09 18:17:09 +12:00
postgres.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
postgres_ext.h Move RelFileNumber declarations to common/relpath.h. 2022-09-27 12:01:57 -04:00
postgres_fe.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
varatt.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
windowapi.h Update copyright for 2023 2023-01-02 15:00:37 -05:00