PostGIS  2.5.7dev-r@@SVN_REVISION@@
lwgeom_triggers.c File Reference

The intended use for this trigger function is making a geometry field cache it's bbox. More...

#include "postgres.h"
#include "executor/spi.h"
#include "commands/trigger.h"
#include "../postgis_config.h"
#include "lwgeom_pg.h"
#include "utils/rel.h"
Include dependency graph for lwgeom_triggers.c:

Go to the source code of this file.

Functions

Datum cache_bbox (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (cache_bbox)
 

Detailed Description

The intended use for this trigger function is making a geometry field cache it's bbox.

Use like this:

CREATE TRIGGER <name> BEFORE INSERT OR UPDATE ON

EACH ROW EXECUTE PROCEDURE cache_bbox(<field>);

Definition in file lwgeom_triggers.c.