From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] create rule changes table to view ? |
Date: | 1999-09-23 17:27:11 |
Message-ID: | 199909231727.NAA19787@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Can someone comment on this?
> I just began to learn rules with 6.5 and notice:
> test=> \dt
> Database = test
> +------------------+----------------------------------+----------+
> | Owner | Relation | Type |
> +------------------+----------------------------------+----------+
> | megera | access_log | table |
> | megera | hits | table |
> | megera | junk_qwerty | table |
> +------------------+----------------------------------+----------+
>
> test=> create rule log_hits as on update to hits do instead insert into hits values ( NEW.msg_id, 1);
> CREATE
> test=> \dt
> Database = test
> +------------------+----------------------------------+----------+
> | Owner | Relation | Type |
> +------------------+----------------------------------+----------+
> | megera | access_log | table |
> | megera | hits | view? |
> | megera | junk_qwerty | table |
> +------------------+----------------------------------+----------+
>
> Table hits now becomes view ?
>
>
> Regards,
>
> Oleg
>
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
>
>
>
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-09-23 17:35:51 | [HACKERS] 9-key index ? (fwd) |
Previous Message | Bruce Momjian | 1999-09-23 17:18:18 | Re: [SQL] Re: [HACKERS] SELECT DISTINCT question |