pg_last_oid() is used to retrieve the oid assigned to an inserted tuple (record) if the result resource is used from the last command sent via pg_query() and was an SQL INSERT.
pg_last_oid() sert à lire le dernier oid assigné à un ligne, qui est stocké dans la ressource result, obtenu lors de la dernière commande pg_query().