Subject: Re: Proposal to CREATE FOREIGN TABLE LIKE

From: Zhang Mingli <[email-masked]>
Date: Thu, 6 Feb 2025 20:13:47 +0800

On Feb 6, 2025 at 18:31 +0800, Álvaro Herrera <[email-masked]>, wrote:
>
> Ah, but our fine manual already says
>
> The LIKE clause can also be used to copy column definitions from views,
> foreign tables, or composite types. Inapplicable options (e.g.,
> INCLUDING INDEXES from a view) are ignored.
>
> so what you implemented seems to be okay from that POV.
Hi, Yeah,

Our current convention is to ignore any inapplicable options without throwing errors.

As you mentioned, we use bits to identify the options, which does add some complexity to the codes if we try to track the origin of the option bits.

--
Zhang Mingli
HashData