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
PostgreSQL Daemon 969685ad44 $Header: -> $PostgreSQL Changes ... 22 years ago
..
Makefile $Header: -> $PostgreSQL Changes ... 22 years ago
README.noup Add missing /contrib files 26 years ago
noup.c Error message editing in contrib (mostly by Joe Conway --- thanks Joe!) 22 years ago
noup.sql.in Backend support for autocommit removed, per recent discussions. The 23 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;