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

From Tom Lane
Subject Re: postgres_fdw foreign tables and serial columns
Date
Msg-id 24617.1368624368@sss.pgh.pa.us
Whole thread Raw
In response to postgres_fdw foreign tables and serial columns  ("Nicholson, Brad (Toronto, ON, CA)" <bnicholson@hp.com>)
Responses Re: postgres_fdw foreign tables and serial columns  (Atri Sharma <atri.jiit@gmail.com>)
Re: postgres_fdw foreign tables and serial columns  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-hackers
"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?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PostgreSQL 9.3 beta breaks some extensions "make install"
Next
From: Atri Sharma
Date:
Subject: Re: postgres_fdw foreign tables and serial columns