Re: views? - Mailing list pgsql-performance

From Neil Conway
Subject Re: views?
Date
Msg-id 87k738ivl8.fsf@mailbox.samurai.com
Whole thread Raw
In response to views?  ("Loeke" <LoekeDoeLoekeDoe@dontlikespam.hotmail.com>)
Responses Re: views?  (Richard Huxton <dev@archonet.com>)
List pgsql-performance
"Loeke" <LoekeDoeLoekeDoe@dontlikespam.hotmail.com> 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


pgsql-performance by date:

Previous
From: "Loeke"
Date:
Subject: views?
Next
From: Josh Berkus
Date:
Subject: Re: Unique index and estimated rows.