Use pg_get_triggerdef in pg_dump
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 9 Oct 2009 21:02:56 +0000 (21:02 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 9 Oct 2009 21:02:56 +0000 (21:02 +0000)
commitb865d2758255b767e30dc5f23c7c7d209e716f3b
tree7df91d80adfc7de9040c7446ea87d319a2e18a57
parentc970292a94e0fff468d500db430d751b6221a0b4
Use pg_get_triggerdef in pg_dump

Add a variant of pg_get_triggerdef with a second argument "pretty" that
causes the output to be formatted in the way pg_dump used to do.  Use this
variant in pg_dump with server versions >= 8.5.

This insulates pg_dump from most future trigger feature additions, such as
the upcoming column triggers patch.

Author: Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
doc/src/sgml/func.sgml
src/backend/utils/adt/ruleutils.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h