Re: postgres_fdw foreign tables and serial columns - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: postgres_fdw foreign tables and serial columns
Date
Msg-id A737B7A37273E048B164557ADEF4A58B0581DDB6@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Re: postgres_fdw foreign tables and serial columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: postgres_fdw foreign tables and serial columns  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> "Nicholson, Brad (Toronto, ON, CA)" <bnicholson@hp.com> writes:
>> [ this error message sucks: ]
>> test=# create foreign table local_foo (id serial) server test_server options (table_name 'foo');
>> ERROR:  referenced relation "local_foo" is not a table
>
> Yeah, I'd noticed that myself.  We could probably tweak the code to
> issue a different error message and/or add a HINT if the serial's
> parent relation is a foreign table.  I'm not exactly sure what it
> should say though.  Thoughts?

HINT: Serial columns can only be defined for local tables.  Use "integer" or "bigint" instead.

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: PostgreSQL 9.3 beta breaks some extensions "make install"
Next
From: Tom Lane
Date:
Subject: Re: postgres_fdw foreign tables and serial columns