]> git.openstreetmap.org Git - nominatim.git/commit
Stop maintaining the place_classtype tables on updates
authorItz-Agasta <rupamgolui69@gmail.com>
Thu, 6 Aug 2026 09:00:55 +0000 (14:30 +0530)
committerItz-Agasta <rupamgolui69@gmail.com>
Thu, 6 Aug 2026 09:00:55 +0000 (14:30 +0530)
commitf9ca95c3abdb75229c97b3415a8422e99776e544
tree0d70ddf8997a80c35eb5b831ae08d3754ba6f467
parentee2048446af8470600035ee4d72612a838d17234
Stop maintaining the place_classtype tables on updates

Category search reads the categories column now, so the rows the insert
and delete triggers keep in sync are not read by anything anymore. Both
did a pg_tables lookup on every placex insert and delete to find out
whether a table for the class/type exists, which is pure overhead on
diff updates.

The webuser does not need read access to the tables either.
lib-sql/functions/placex_triggers.sql
lib-sql/grants.sql