postgresql/contrib/noupdate
Tom Lane b663f3443b Add a bunch of pseudo-types to replace the behavior formerly associated
with OPAQUE, as per recent pghackers discussion.  I still want to do some
more work on the 'cstring' pseudo-type, but I'm going to commit the bulk
of the changes now before the tree starts shifting under me ...
2002-08-22 00:01:51 +00:00
..
Makefile To fix the perpetually broken makefiles in the contrib tree, I have 2001-09-06 10:49:30 +00:00
noup.c Change made to elog: 2002-03-06 06:10:59 +00:00
noup.sql.in Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
README.noup Add missing /contrib files 2000-06-19 14:02:16 +00:00


noupdate
~~~~~~~~

 - trigger to prevent updates on single columns.


Example:
~~~~~~~

CREATE TABLE TEST ( COL1 INT, COL2 INT, COL3 INT );

CREATE TRIGGER BT BEFORE UPDATE ON TEST FOR EACH ROW
	EXECUTE PROCEDURE 
	noup ('COL1');

-- Now Try
INSERT INTO TEST VALUES (10,20,30);
UPDATE TEST SET COL1 = 5;