postgres_fdw: Running default expressions on foreign server

From: Tommy Duek <taduek(at)gmail(dot)com>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-general(at)postgresql(dot)org, shigeru(dot)hanada(at)gmail(dot)com
Subject: postgres_fdw: Running default expressions on foreign server
Date: 2014-08-21 21:15:30
Message-ID: 20F38ADF-0826-45FA-9A1C-12ED81049305@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Tom,

I realize that postgres_fdw on 9.3 doesn’t support default expressions that run on the foreign server. In my case, I have a unique, auto-incrementing ID column that the remote server keeps track of in a sequence. The local foreign table doesn’t have access to this and tries to INSERT with IDs that have already been taken in the original table on the remote server.

After seeing this post: http://www.postgresql.org/message-id/26654.1380145647@sss.pgh.pa.us, I’m hopeful honoring these default expressions in the foreign server will be supported at some point.

I’m working on a project now that uses the postgres_fdw extensively. Do you know if this will be fixed in 9.4? I figure it’s worth checking since 9.4 is scheduled to be released any day now, before I start rewriting the whole project.

Thanks,
Tommy Duek

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Lau 2014-08-21 23:26:39 WAL log level compatibility
Previous Message Alvaro Herrera 2014-08-21 21:05:25 Re: hot_standby_feedback vs. max_standby_archive_delay/max_standby_streaming_delay?