This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Make a trigger to count rows in a table */ | |
CREATE TABLE rowcount ( | |
table_name text NOT NULL, | |
total_rows bigint, | |
PRIMARY KEY (table_name)); | |
CREATE OR REPLACE FUNCTION count_rows() | |
RETURNS TRIGGER AS | |
' |
NewerOlder