Re: Proposal to CREATE FOREIGN TABLE LIKE
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Álvaro Herrera <alvherre@alvh.no-ip.org>
To: Zhang Mingli <zmlpostgres@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-02-06T10:29:18Z
Lists: pgsql-hackers
On 2025-Feb-06, Zhang Mingli wrote: > Added support for CREATE FOREIGN TABLE LIKE to enable the creation of > foreign tables based on the column definitions, constraints of > existing source tables. > This feature mirrors the behavior of CREATE TABLE LIKE, but ignores > inapplicable options such as INCLUDING INDEXES and INCLUDING > COMPRESSION for foreign tables. I think it'd be better to throw errors if they are given -- but INCLUDING ALL should be made to work in a different way than today so that it doesn't raise errors uselessly. Right now it works by setting all the bits in the value, um. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
Commits
-
Add support for LIKE in CREATE FOREIGN TABLE
- 302cf1575923 18.0 landed