Re: [GENERAL] what is "view?"

From: Jose Soares <jose(at)sferacarta(dot)com>
To: Marc Tardif <admin(at)wtbwts(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] what is "view?"
Date: 2000-01-26 13:51:26
Message-ID: 388EFBDE.70CCB75@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

A view is a table with a rule SELECT
For excample if you have a table named my_table
and you create a rule like:

CREATE RULE "_RETmy_table"
AS ON SELECT TO "my_table"
DO INSTEAD
SELECT * FROM your_table;

In this way you your table my_table
became a view.

José

Marc Tardif wrote:

> When listing my tables and indices in psql, I see a "view?" in type. What
> is this type? Where can I read about it in the manual?
>
> The table listed as "view?" use to be listed as "table" but suddently
> changed when I added rules. Do rules make a table a view?
>
> Marc
>
> ************

In response to

Browse pgsql-general by date

  From Date Subject
Next Message epmuwv 2000-01-26 17:11:35 rachel.jpg 892
Previous Message Jeremy Malcolm 2000-01-26 13:43:54 RE: [GENERAL] Can || be used in ORDER BY?