diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2009-10-09 21:02:56 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2009-10-09 21:02:56 +0000 |
| commit | b865d2758255b767e30dc5f23c7c7d209e716f3b (patch) | |
| tree | 7df91d80adfc7de9040c7446ea87d319a2e18a57 /src/bin/pg_dump/pg_dump.h | |
| parent | c970292a94e0fff468d500db430d751b6221a0b4 (diff) | |
| download | postgresql-b865d2758255b767e30dc5f23c7c7d209e716f3b.tar.gz | |
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>
Diffstat (limited to 'src/bin/pg_dump/pg_dump.h')
| -rw-r--r-- | src/bin/pg_dump/pg_dump.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_dump.h b/src/bin/pg_dump/pg_dump.h index 5b2c3d1e6b..b6ee4bb2fc 100644 --- a/src/bin/pg_dump/pg_dump.h +++ b/src/bin/pg_dump/pg_dump.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.h,v 1.158 2009/10/05 19:24:46 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.h,v 1.159 2009/10/09 21:02:56 petere Exp $ * *------------------------------------------------------------------------- */ @@ -328,6 +328,7 @@ typedef struct _triggerInfo char tgenabled; bool tgdeferrable; bool tginitdeferred; + char *tgdef; } TriggerInfo; /* |
