From bc62c6e3eaeb24bcdecbf400a1cebc730b11e6e0 Mon Sep 17 00:00:00 2001 From: Felix Delattre Date: Thu, 11 Sep 2025 13:02:33 +0200 Subject: [PATCH] Added note about pgstac UPDATE behavior. --- docs/src/pgstac.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/pgstac.md b/docs/src/pgstac.md index d4eaaa90..391db660 100644 --- a/docs/src/pgstac.md +++ b/docs/src/pgstac.md @@ -215,6 +215,8 @@ You can add notification triggers alongside pgstac to get notified when items ar **Important:** Do NOT create these in the `pgstac` schema as they could be removed in future migrations. +**Note on pgSTAC's UPDATE behavior:** For performance and consistency, `update_item()` in pgSTAC uses a **DELETE+INSERT** pattern instead of a direct SQL `UPDATE`. As a result, standard `UPDATE` triggers will not fire during these operations. Applications that rely on change notifications should implement logic that accounts for this behavior. + #### Example Notification Setup Here's an example of how to set up notification triggers for item changes: