The following bug has been logged on the website:
Bug reference: 14346
Logged by: Massimo Roscio
Email address: mroscio(at)tin(dot)it
PostgreSQL version: 9.5.4
Operating system: PostgreSQL 9.5.4 on x86_64-pc-linux-gnu, compiled
Description:
xxx is created with all relevant columns
When yyy has no primary keys, all constraints are duly created on xxx.
When yyy has a primary key named pk_yyy, a primary key named xxx_pkey is
created, all other constraints are lost.
Please feel free to ask for more information if needed.
regards