CREATE TABLE LIKE
The LIKE clause of CREATE TABLE and CREATE FOREIGN TABLE: new INCLUDING options (statistics, access method, comments, policies, triggers, storage parameters) and bugs in copying table definitions.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · moderate · 1 commit · +271 / -12 lines
Threads
- CREATE TABLE .. LIKE copies comments to an unrelated table
- create table like including storage parameter
- COMMENTS are not being copied in CREATE TABLE LIKE
- CREATE TABLE LIKE INCLUDING TRIGGERS
- CREATE TABLE LIKE INCLUDING PRIVILEGES
- Bug in CREATE TABLE .. LIKE .. INCLUDING STATISTICS?
- Re: create table like including storage parameter
- Re: create table like including storage parameter
- CREATE TABLE LIKE INCLUDING POLICIES
- Clarify INCLUDING COMMENTS behavior in CREATE TABLE and CREATE FOREIGN TABLE docs
- CREATE TABLE ... LIKE INCLUDING ALL does not create new sequences for serial columns
- [bug report] About create table like feature's bug
- CREATE TABLE LIKE(INCLUDING COMMENTS) description ignored STATISTICS
- Fix inaccurate mention of index comments in CREATE FOREIGN TABLE docs
- Inconsistency between Compression and Storage for Foreign Tables
- Proposal to CREATE FOREIGN TABLE LIKE
- Clarification regarding CREATE TABLE LIKE and FOREIGN KEYS
- create table like: ACCESS METHOD
- BUG #16758: create temporary table with the same name loses defaults, indexes
- BUG #16730: Create table like with inheritance and self referencing index
- BUG #16272: Index expression can refer to wrong attributes if index is created via CREATE TABLE LIKE
- Confusing behavior of create table like
- Constraint's NO INHERIT option is ignored in CREATE TABLE LIKE statement
- pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
- CREATE LIKE INCLUDING COMMENTS and STORAGES