Re: postgres_fdw foreign tables and serial columns
| От | Albe Laurenz |
|---|---|
| Тема | Re: postgres_fdw foreign tables and serial columns |
| Дата | |
| Msg-id | A737B7A37273E048B164557ADEF4A58B0581DDB6@ntex2010a.host.magwien.gv.at обсуждение исходный текст |
| Ответ на | Re: postgres_fdw foreign tables and serial columns (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: postgres_fdw foreign tables and serial columns
|
| Список | 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 по дате отправления: