Re: [GENERAL] what is "view?" - Mailing list pgsql-general

From Jose Soares
Subject Re: [GENERAL] what is "view?"
Date
Msg-id 388EFBDE.70CCB75@sferacarta.com
Whole thread Raw
In response to what is "view?"  (Marc Tardif <admin@wtbwts.com>)
List 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
>
> ************


pgsql-general by date:

Previous
From: "Jeremy Malcolm"
Date:
Subject: RE: [GENERAL] Can || be used in ORDER BY?
Next
From: Marc Tardif
Date:
Subject: Re: [GENERAL] upgrade postgreSQL