Do you mean with lastval()? Here's what happens:
Hm, interesting, you mean the return value of lastval() also depends if you set your constraints to deferred or immediate ?
I wond ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org