From: Euler Taveira <euler@eulerto.com>
To: david@robbez.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Clarification regarding CREATE TABLE LIKE and FOREIGN KEYS
Date: Wed, 29 Nov 2023 12:24:23 -0300
Message-ID: <b1e8e241-d2d1-4a53-8ba8-2f72b920b8c6@app.fastmail.com> (raw)
In-Reply-To: <170109752554.398199.1576920096317923086@wrigleys.postgresql.org>
References: <170109752554.398199.1576920096317923086@wrigleys.postgresql.org>
On Mon, Nov 27, 2023, at 12:05 PM, PG Doc comments form wrote:
> 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.
>
It is impractical to add what a feature *does not* provide in general. The
probability that that information will be obsolete (due to new features) is
high. If the information is missing that's because it is not supported. (Of
course, it can be an omission and, in this case, we need to fix it.)
--
Euler Taveira
EDB https://www.enterprisedb.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: euler@eulerto.com, david@robbez.com, pgsql-docs@lists.postgresql.org
Subject: Re: Clarification regarding CREATE TABLE LIKE and FOREIGN KEYS
In-Reply-To: <b1e8e241-d2d1-4a53-8ba8-2f72b920b8c6@app.fastmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox