git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1ba0119) | patch
Allow default expressions to be attached to columns of foreign tables.
2013年3月12日 21:37:07 +0000 (17:37 -0400)
2013年3月12日 21:37:07 +0000 (17:37 -0400)
commit a0c6dfeecfcc860858b04617a9d96eaee1d82c66
Allow default expressions to be attached to columns of foreign tables.

There's still some discussion about exactly how postgres_fdw ought to
handle this case, but there seems no debate that we want to allow defaults
to be used for inserts into foreign tables. So remove the core-code
restrictions that prevented it.

While at it, get rid of the special grammar productions for CREATE FOREIGN
TABLE, and instead add explicit FEATURE_NOT_SUPPORTED error checks for the
disallowed cases. This makes the grammar a shade smaller, and more
importantly results in much more intelligible error messages for
unsupported cases. It's also one less thing to fix if we ever start
supporting constraints on foreign tables.
doc/src/sgml/ref/alter_foreign_table.sgml diff | blob | blame | history
doc/src/sgml/ref/create_foreign_table.sgml diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/parser/parse_utilcmd.c diff | blob | blame | history
src/test/regress/expected/foreign_data.out diff | blob | blame | history
src/test/regress/sql/foreign_data.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /