Re: postgres_fdw foreign tables and serial columns

From: Atri Sharma <atri(dot)jiit(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Nicholson, Brad (Toronto, ON, CA)" <bnicholson(at)hp(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: postgres_fdw foreign tables and serial columns
Date: 2013-05-15 13:32:58
Message-ID: 08D27E94-8429-4CEB-866F-14306C308E3A@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sent from my iPad

On 15-May-2013, at 18:56, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "Nicholson, Brad (Toronto, ON, CA)" <bnicholson(at)hp(dot)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?
>
>
>
>
>

+1 for the HINT message addition.

Regards,

Atri

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2013-05-15 13:49:03 Re: PostgreSQL 9.3 beta breaks some extensions "make install"
Previous Message Tom Lane 2013-05-15 13:26:08 Re: postgres_fdw foreign tables and serial columns