postgresql/contrib/postgres_fdw
Tom Lane b142068622 Allow CREATE FOREIGN TABLE to include SERIAL columns.
The behavior is that the required sequence is created locally, which is
appropriate because the default expression will be evaluated locally.
Per gripe from Brad Nicholson that this case was refused with a confusing
error message.  We could have improved the error message but it seems
better to just allow the case.

Also, remove ALTER TABLE's arbitrary prohibition against being applied to
foreign tables, which was pretty inconsistent considering we allow it for
views, sequences, and other relation types that aren't even called tables.
This is needed to avoid breaking pg_dump, which sometimes emits column
defaults using separate ALTER TABLE commands.  (I think this can happen
even when the default is not associated with a sequence, so that was a
pre-existing bug once we allowed column defaults for foreign tables.)
2013-05-15 19:03:29 -04:00
..
expected Allow CREATE FOREIGN TABLE to include SERIAL columns. 2013-05-15 19:03:29 -04:00
sql Allow CREATE FOREIGN TABLE to include SERIAL columns. 2013-05-15 19:03:29 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c Document cross-version compatibility issues for contrib/postgres_fdw. 2013-03-22 17:22:31 -04:00
deparse.c Avoid retrieving dummy NULL columns in postgres_fdw. 2013-03-22 00:31:11 -04:00
Makefile Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
option.c Rename postgres_fdw's use_remote_explain option to use_remote_estimate. 2013-02-23 12:20:48 -05:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Document cross-version compatibility issues for contrib/postgres_fdw. 2013-03-22 17:22:31 -04:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h Avoid retrieving dummy NULL columns in postgres_fdw. 2013-03-22 00:31:11 -04:00