X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 825539FA5C3 for ; Fri, 16 Jun 2006 11:08:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 36407-10 for ; Fri, 16 Jun 2006 11:08:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31802.mail.mud.yahoo.com (web31802.mail.mud.yahoo.com [68.142.207.65]) by postgresql.org (Postfix) with SMTP id A90D99FA42B for ; Fri, 16 Jun 2006 11:08:01 -0300 (ADT) Received: (qmail 82762 invoked by uid 60001); 16 Jun 2006 14:08:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rqfi5yKTAoE4p9yOT2R7nncBFY1o93BaLix7TXM0+0I+9rK/onZAbfV3zOeRuDNClo6FkZqJat9QxgyYl9UDdu0diERSE/rhxLLvTrG7fMnBQRsYCv8cKCXmRiKC+Yqd1Tx6Bgf6R/7sg0XlXSaTPwJSD7kyfr34YXro92GkzJ8= ; Message-ID: <20060616140800.82760.qmail@web31802.mail.mud.yahoo.com> Received: from [65.211.203.23] by web31802.mail.mud.yahoo.com via HTTP; Fri, 16 Jun 2006 07:08:00 PDT Date: Fri, 16 Jun 2006 07:08:00 -0700 (PDT) From: Richard Broersma Jr Subject: Re: Repetitive code To: Joe , Aaron Bono Cc: pgsql-sql@postgresql.org In-Reply-To: <4492B248.7040406@freedomcircle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/207 X-Sequence-Number: 25443 > AFAIK PostgreSQL does not support materialized views but it's > interesting that you mention that because in essence the query is used > to materialize a view, i.e., it's part of an INSERT / SELECT into a > table which is then joined back to the other tables to construct a web > page as well as an RSS feed. This thread: http://archives.postgresql.org/pgsql-performance/2006-06/msg00324.php mentions the use of materialized views in postgresql. See: http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html However, I am not sure if this link shows how postgresql supports materialized views or if it just shows how to simulate a materialized view with procedural code. Either way, I thought it might be of interest to you. Regards, Richard Broersma Jr.