PgDAC
Returns OID of the record inserted by the last query for table with OIDs.
TPgSQL
property LastInsertOID: Int64;
Use the LastInsertOID property to get OID of the record inserted by the last query for table with OIDs.