On 07/11/2018 15:12, Pepe TD Vo wrote: > and I converted it to Postgres Pragma autonomous_transaction and I'm not > sure its corrected but it didn't give any error. PostgreSQL does not support autonomous transactions. Some people use dblink as a workaround. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services