From: Hollysugar Webmaster <webmaster@hollysugar.com>
To: Hiroshi Inoue <Inoue@tpf.co.jp>
To: pgsql-odbc@postgresql.org
Subject: syncing mobile application with a view instead of a table
Date: Wed, 16 Apr 2003 11:24:15 -0600
Message-ID: <00d201c3043d$0123deb0$a1d2a8c0@impsu.net> (raw)
MessageNow that we are able to successfully sync our mobile application to a table we want to sync to a view and use rules to make the actual changes to the underlying tables. The problem we are having is that without the oid and ctid column selected as part of the definition of the view the psqlodbc driver halts with the error that relation oid cannot be found. If we include the oid and ctid column in the definition of the view then the mobile application balks because it does not allow you to explicitly create an oid column. If we uncheck updateable cursors the psqlodbc driver balks because it only supports sqlsetpos(refresh) without updateable cursors.
Any suggestions?
If all else fails I figured I could create new tables with copies of the data from the tables I wanted to access with the views and then use triggers to keep the new tables and the actual storage tables synced. The problem with this solution is that I would then need to rewrite my whole web application and we are pressed for time.
Thanks.
Julie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: webmaster@hollysugar.com, Inoue@tpf.co.jp
Subject: Re: syncing mobile application with a view instead of a table
In-Reply-To: <00d201c3043d$0123deb0$a1d2a8c0@impsu.net>
References: <00d201c3043d$0123deb0$a1d2a8c0@impsu.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox