How do you obtain the primary key value having done an INSERT if the PK is an auto incrementing integer? Im using either the C API (libpq) or the C++ one (pgxx).

Thanks