Jeff Ross <jross@xxxxxxxxxxxxxx> writes: > I then get this error: > NOTICE: update cargotel_common.copy_orders_to_dev set copy_completed = > 't', copy_completed_timestamp = clock_timestamp() where id = 21 > ERROR: cannot commit while a portal is pinned Would you mind supplying a self-contained example that triggers this? regards, tom lane