You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
postgres/contrib/noupdate
Bruce Momjian 558fae16e3 The attached patch enables the contrib subtree to build cleanly under 25 years ago
..
Makefile The attached patch enables the contrib subtree to build cleanly under 25 years ago
README.noup Add missing /contrib files 26 years ago
noup.c Revise handling of oldstyle/newstyle functions per recent discussions 25 years ago
noup.sql.in Revise handling of oldstyle/newstyle functions per recent discussions 25 years ago

README.noup



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;