The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/16/sql-createtable.html Description:
It is not clear to me that foreign keys are copied or not when duplicating a table using CREATE TABLE ... LIKE ... INCLUDING ALL. I had to actually test to check what it does.