Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Update-able View linked to Access


  • From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
  • To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
  • Cc: pgsql-odbc(at)postgresql(dot)org
  • Subject: Re: Update-able View linked to Access
  • Date: Tue, 12 Dec 2006 12:41:44 +0900
  • Message-id: <457E24F8(dot)1080301(at)tpf(dot)co(dot)jp>

Hiroshi Inoue wrote:
Richard Broersma Jr wrote:
Please change the field name of B.ctid from hasbandctid to ctid.
The name should be "ctid" for the driver to detect the field is for versioning.
A.ctid isn't needed.

It works now! However, I have a question. If I have a view with more than two joined tables will i need to reference the ctid from each table after the first update statement?

The ctid of the target table of the rule's last statement should be referenced.

Please note this is not a perfect solution.

For example, the change of table A can't be detected using the "ctid".
If you update the link table with where clause including "name" field
and update the "name" and the "tiesize" field, the "tiesize" may not
be updated.....

It seems almost impossible for the driver to solve the problems perfectly.
Essentially it's a problem of the rule system.

regards,
Hiroshi Inoue



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group