Re: [HACKERS] generated columns
Erik Rijkers <er@xs4all.nl>
From: Erik Rijkers <er@xs4all.nl>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Sergei Kornilov
<sk@zsrv.org>, Michael Paquier <michael.paquier@gmail.com>, Jaime Casanova
<jaime.casanova@2ndquadrant.com>
Date: 2019-03-31T03:49:04Z
Lists: pgsql-hackers
On 2019-01-16 22:40, Erik Rijkers wrote: > > If you add a generated column to a file_fdw foreign table, it works OK > wih VIRTUAL (the default) but with STORED it adds an empty column, > silently. I would say it would make more sense to get an error. VIRTUAL is gone, but that other issue is still there: STORED in a file_fdw foreign table still silently creates the column which then turns out to be useless on SELECT, with an error like: "ERROR: column some_column_name is a generated column DETAIL: Generated columns cannot be used in COPY." Maybe it'd be possible to get an error earlier, i.e., while trying to create such a useless column? thanks, Erik Rijkers
Commits
-
Generated columns
- fc22b6623b6b 12.0 landed
-
Add walreceiver API to get remote server version
- 69039fda837d 12.0 landed
-
Add pg_partition_tree to display information about partitions
- d5eec4eefde7 12.0 cited
-
pg_restore: Augment documentation for -N option
- 2fe42baf7c1a 12.0 cited
-
Change delimiter used for display of NextXID
- 59a884e9854c 9.6.0 cited