Re: AUTO_INCREMENT patch

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AUTO_INCREMENT patch
Date: 2003-08-03 02:09:04
Message-ID: 007c01c35964$36fc6c60$6401a8c0@DUNSLANE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Rod Taylor wrote about using views for identity cols, thus:

t=# create schema jboss
t-# create view test as select * from data.test;
CREATE SCHEMA
t=#
t=# create rule test_id_generate as on insert to jboss.test
t-# do instead
t-# insert into data.test (id, word) values (default, new.word);
CREATE RULE
t=#
t=# insert into jboss.test (word) values ('hello');
INSERT 17347 1

The docs currently state that views are read-only. Is this no longer true?

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-08-03 02:12:34 Re: AUTO_INCREMENT patch
Previous Message Rod Taylor 2003-08-03 00:56:25 Re: AUTO_INCREMENT patch

Browse pgsql-patches by date

  From Date Subject
Next Message Lee Kindness 2003-08-03 14:35:18 Re: 7.4 COPY BINARY Format Change
Previous Message Rod Taylor 2003-08-03 00:56:25 Re: AUTO_INCREMENT patch