Using INSERT...RETURNING to retrieve sequence values in PostgreSQL
employee_schema added to PostgreSQL demo