aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-11-16 14:32:09 +0900
committerMichael Paquier <michael@paquier.xyz>2022-11-16 14:32:09 +0900
commit63c833f4bdca3251347dd622102de0908a934330 (patch)
tree0f1c2a24512b8d510c019043c15f51cebe4b0e62 /src/backend/access/gist/gistxlog.c
parent36e0358e70498b5bf5e3e83d91ac964fc24c249e (diff)
downloadpostgresql-63c833f4bdca3251347dd622102de0908a934330.tar.gz
postgresql-63c833f4bdca3251347dd622102de0908a934330.zip
Use multi-inserts for pg_ts_config_map
Two locations working on pg_ts_config_map are switched from CatalogTupleInsert() to a multi-insert approach with tuple slots: - ALTER TEXT SEARCH CONFIGURATION ADD/ALTER MAPPING when inserting new entries. The number of entries to insert is known in advance, so is the number of slots needed. Note that CatalogTupleInsertWithInfo() is now used for the entry updates. - CREATE TEXT SEARCH CONFIGURATION, where up to ~20-ish records could be inserted at once. The number of slots is not known in advance, hence a slot initialization is delayed until a tuple is stored in it. Like all the changes of this kind (1ff4161, 63110c6 or e3931d01), an insert batch is capped at 64kB. Author: Michael Paquier, Ranier Vilela Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/Y3M5bovrkTQbAO4W@paquier.xyz
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions