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