X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D5C84D1C969 for ; Sat, 31 Jan 2004 04:35:47 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 04774-06 for ; Sat, 31 Jan 2004 00:35:42 -0400 (AST) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by svr1.postgresql.org (Postfix) with ESMTP id CCCD4D1C93E for ; Sat, 31 Jan 2004 00:35:40 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by bob.samurai.com (Postfix) with ESMTP id E2DDC1EBD; Fri, 30 Jan 2004 23:35:33 -0500 (EST) Received: from bob.samurai.com ([127.0.0.1]) by localhost (bob.samurai.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 48167-01-7; Fri, 30 Jan 2004 23:35:33 -0500 (EST) Received: from tokyo.samurai.com (d226-89-59.home.cgocable.net [24.226.89.59]) by bob.samurai.com (Postfix) with ESMTP id 7A6E61E7D; Fri, 30 Jan 2004 23:35:32 -0500 (EST) To: "Loeke" Cc: pgsql-performance@postgresql.org Subject: Re: views? From: Neil Conway In-Reply-To: <1075316194.466850@seven.kulnet.kuleuven.ac.be> (Loeke's message of "Wed, 28 Jan 2004 19:56:46 +0100") References: <1075316194.466850@seven.kulnet.kuleuven.ac.be> Date: Fri, 30 Jan 2004 23:35:31 -0500 Message-ID: <87k738ivl8.fsf@mailbox.samurai.com> User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at mailbox.samurai.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/342 X-Sequence-Number: 5516 "Loeke" writes: > do views exist fysically a separate "table", or are they generated > on the fly whenever they are queried? Views are implementing by rewriting queries into the appropriate query on the view's base tables. http://www.postgresql.org/docs/current/static/rules-views.html > if they exist fysically they could improve performance (..php, web), This is called a "materialized view". PostgreSQL doesn't support them yet, but most people think it would be a Good Thing to have. -Neil