X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id F1C62CCDAB for ; Fri, 18 Jul 2003 17:48:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 77032-07 for ; Fri, 18 Jul 2003 17:48:45 +0000 (GMT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 7F3B5CCD89 for ; Fri, 18 Jul 2003 14:48:12 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h6IHlZSZ025325; Fri, 18 Jul 2003 11:47:35 -0600 (MDT) Date: Fri, 18 Jul 2003 11:39:00 -0600 (MDT) From: "scott.marlowe" To: Naomi Walker Cc: "pgsql-admin@postgresql.org" Subject: Re: Read-Only Views? In-Reply-To: <5.1.0.14.2.20030718102511.0347dd70@imap.eldocomp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/174 X-Sequence-Number: 9514 Yep. by default views are not updateable in postgresql. However, they can be made updateable by triggers. Note that not all views are inherently updateable, just the simplest. for instance how would you update: create view bigview as select g1.id, t1.f1*t2.f2, t1.f3/t3.f4 from tabl1 t1, table2 t2, table3 t3 where t1.id=t2.t1id and t1.id=t3.t1id ? On Fri, 18 Jul 2003, Naomi Walker wrote: > > I noticed in some (older) documentation that views were read-only? Is this > still the case? > > Naomi > > > ------------------------------------------------------------------------------------------------------------------------- > Naomi Walker Chief Information Officer > Eldorado Computing, Inc. > nwalker@eldocomp.com 602-604-3100 > ------------------------------------------------------------------------------------------------------------------------- > Do not follow where the path may lead. Go, instead and leave a trail. > -Robert Frost > ------------------------------------------------------------------------------------------------------------------------- > > -- CONFIDENTIALITY NOTICE -- > > This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you. > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >