From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Jeanna Geier <jgeier(at)apt-cafm(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Deleting From View? |
Date: | 2007-01-05 15:47:21 |
Message-ID: | 20070105154721.GB27598@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, Jan 05, 2007 at 09:42:09AM -0600, Jeanna Geier wrote:
>
> Hello List!
>
> I'm having an issue with my program; it's inserting into one record into a
> view (named 'measurement') twice ,which it's not supposed to be - so, I'm
> attempting to put a delete statement in the code to remove one of these
> records, but am getting an error. (Will track down the real insert issue
> when I have more time, right now I just need to get this compiling....)
Normally you can't insert or delete from a view, because a view doesn't
exist, it's the result of a query. Obviously you have some rules setup
to allow inserting, which is obviously not doing the right thing if the
output suddenly creates two rows.
You're going to need to provide the complete definition of the
table+rules if you want a more detailed answer.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2007-01-05 15:51:08 | Re: Deleting From View? |
Previous Message | Jeanna Geier | 2007-01-05 15:42:09 | Re: Deleting From View? |