Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax

Peter Eisentraut <peter_e@gmx.net>

Commit: e0dc839e72d43e6c299deca892a8209e11dd88f6
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-08-22T12:45:07Z
Releases: 11.0
Change PROCEDURE to FUNCTION in CREATE TRIGGER syntax

Since procedures are now a different thing from functions, change the
CREATE TRIGGER and CREATE EVENT TRIGGER syntax to use FUNCTION in the
clause that specifies the function.  PROCEDURE is still accepted for
compatibility.

pg_dump and ruleutils.c output is not changed yet, because that would
require a change in information_schema.sql and thus a catversion change.

Reported-by: Peter Geoghegan <pg@bowt.ie>
Reviewed-by: Jonathan S. Katz <jonathan.katz@excoventures.com>

Files

Documentation touched