Skip to content

Commit 4de320a

Browse files
authored
Added note about pgstac UPDATE behavior. (#384)
1 parent bb25c34 commit 4de320a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/pgstac.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ You can add notification triggers alongside pgstac to get notified when items ar
215215

216216
**Important:** Do NOT create these in the `pgstac` schema as they could be removed in future migrations.
217217

218+
**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.
219+
218220
#### Example Notification Setup
219221
220222
Here's an example of how to set up notification triggers for item changes:

0 commit comments

Comments
 (0)