still problem: inserting into writeable views - Mailing list pgsql-jdbc

From Holger Jakobs
Subject still problem: inserting into writeable views
Date
Msg-id 4931C03B.6020909@Jakobs.com
Whole thread Raw
Responses Re: still problem: inserting into writeable views  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Hi everybody,

I know this has been written about before, but no solution has been
given. Writing (insert, update, delete) to a view is generally not
possible in PostgreSQL. But if rules have been set up to redirect write
access to a view to some other (real) table, it works fine. Even using
Squirrel SQL, which has been written in Java and uses
org.postgresql.Driver, can write to writeable views.

Using JDBC (org.postgresql.Driver) produces an error
org.postgresql.util.PSQLException: FEHLER: kann nicht in eine Sicht einfügen
(German version, translates as 'ERROR: cannot insert into a view')

Why can't the JDBC driver just leave the decision whether a table/view
is writeable or not to the database instead of interfering?

Regards,
Holger

--
Holger Jakobs, Bergisch Gladbach, Germany
Telefon (0 22 02) 81 71 57, mobil (01 78) 9 75 90 12

Mails sollte man signieren und nach Möglichkeit verschlüsseln
siehe http://www.gnupg.org/gph/de/manual/f20.html



Attachment

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: GSSAPI support [was: Re: New drivers released]
Next
From: Oliver Jowett
Date:
Subject: Re: still problem: inserting into writeable views