Re: Proposal to CREATE FOREIGN TABLE LIKE

Поиск
Список
Период
Сортировка
От Zhang Mingli
Тема Re: Proposal to CREATE FOREIGN TABLE LIKE
Дата
Msg-id 0663eec9-883d-4c25-ade4-58f227ece827@Spark
обсуждение исходный текст
Ответ на Re: Proposal to CREATE FOREIGN TABLE LIKE  (Álvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-hackers
On Feb 6, 2025 at 18:31 +0800, Álvaro Herrera <alvherre@alvh.no-ip.org>, 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

В списке pgsql-hackers по дате отправления: