]> granicus.if.org Git - postgresql/commit
Don't allow foreign tables with OIDs.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 24 Jun 2014 09:31:36 +0000 (12:31 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 24 Jun 2014 10:31:06 +0000 (13:31 +0300)
commit1818ae0a789ec360d8641c98520f832b9fd9c0ef
tree2d44cc3178ef93eab0a59d4e4fdb7b840a9dd987
parente9b182404b67eef9a263c3d07b89cb60b26bed7b
Don't allow foreign tables with OIDs.

The syntax doesn't let you specify "WITH OIDS" for foreign tables, but it
was still possible with default_with_oids=true. But the rest of the system,
including pg_dump, isn't prepared to handle foreign tables with OIDs
properly.

Backpatch down to 9.1, where foreign tables were introduced. It's possible
that there are databases out there that already have foreign tables with
OIDs. There isn't much we can do about that, but at least we can prevent
them from being created in the future.

Patch by Etsuro Fujita, reviewed by Hadi Moshayedi.
src/backend/commands/tablecmds.c