Re: How to create a *pass-through-query* in postgresql - Mailing list pgsql-sql

From Richard Huxton
Subject Re: How to create a *pass-through-query* in postgresql
Date
Msg-id 004a01c0eec7$6c522800$1001a8c0@archonet.com
Whole thread Raw
In response to How to create a *pass-through-query* in postgresql  (DI Hasenöhrl <i.hasenoehrl@aon.at>)
Responses Re: How to create a *pass-through-query* in postgresql
List pgsql-sql
Please don't post html mail to mailing lists - it screws up quoting.


From: "DI Hasenöhrl" <i.hasenoehrl@aon.at>

Hello all,

>I use postgresql as backend and MsAccess97 as frontend via ODBC.
>I know, how to use VBA and pass through queries to update or insert rows in
postgresql->tables.
>But I don't know, how to do this the other way round, from postgresql to
MsAccess.
>I want to develop a trigger, which updates or inserts rows in some local
tables in >MsAccess on the client side.

Don't think you can do this via ODBC. You can listen for NOTIFY signals with
a real PostgreSQL client, but I wouldn't think ODBC would support this. I
can only think of two ways to approach this:

Have a "change" table and update a timestamp in it whenever a target table
is updated. Then clients can poll once a minute or whatever and see if their
local timestamp is older than the one in the change table.

Or - rig some out-of-band communication. Have a perl script listen for
NOTIFY on the server and signal that to the clients (or just synchronise the
client tables via ODBC).

- Richard Huxton



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: maximum number of rows in table - what about oid limits?
Next
From: "Josh Berkus"
Date:
Subject: Re: How to create a *pass-through-query* in postgresql