On Tuesday, May 3, 2016,
drum.lucas@gmail.com <
drum.lucas@gmail.com> wrote:
This sounds like database pollution...
I'd suggest writing a psql script that can be executed against an empty database and does everything you want it to do. Execute it against an empty database. Capture the output to a file with echo all. Post the script and the output.
Also, try "update returning"
I would also advise adding STRICT.
David J.