←back to thread

570 points davidgu | 1 comments | | HN request time: 0.564s | source
Show context
shivasaxena ◴[] No.44525717[source]
Out of curiosity: Would appreciate if others can share what other things like AccessExclusiveLock should postgres users beware of?

What I already know

- Unique indexes slow inserts since db has to acquire a full table lock

- Case statements in Where break query planner/optimizer and require full table scans

- Read only postgres functions should be marked as `STABLE PARALLEL SAFE`

replies(3): >>44525810 #>>44528659 #>>44529294 #
1. 1a527dd5 ◴[] No.44529294[source]
https://pglocks.org/?pglock=AccessExclusiveLock is my go to reference.

My other reference for a slightly different problem is https://www.thatguyfromdelhi.com/2020/12/what-postgres-sql-c...