Use pg_get_triggerdef in pg_dump

Peter Eisentraut <peter_e@gmx.net>

Commit: b865d2758255b767e30dc5f23c7c7d209e716f3b
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2009-10-09T21:02:56Z
Releases: 9.0.0
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>

Files