diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-04 16:08:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-04 16:08:37 +0000 |
commit | a2a8c7a662ec96537b6d1faba0770c516b921911 (patch) | |
tree | 3226541cb0deaba08693e1d7063c4e49fa74e570 /src/backend/commands/trigger.c | |
parent | f192e4a5d0a041a5353d43fa10b6fe675a1c01fa (diff) | |
download | postgresql-a2a8c7a662ec96537b6d1faba0770c516b921911.tar.gz postgresql-a2a8c7a662ec96537b6d1faba0770c516b921911.zip |
Support hex-string input and output for type BYTEA.
Both hex format and the traditional "escape" format are automatically
handled on input. The output format is selected by the new GUC variable
bytea_output.
As committed, bytea_output defaults to HEX, which is an *incompatible
change*. We will keep it this way for awhile for testing purposes, but
should consider whether to switch to the more backwards-compatible
default of ESCAPE before 8.5 is released.
Peter Eisentraut
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r-- | src/backend/commands/trigger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c index 7bc82127893..c1f55cfcf93 100644 --- a/src/backend/commands/trigger.c +++ b/src/backend/commands/trigger.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.251 2009/07/30 02:45:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.252 2009/08/04 16:08:36 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -37,6 +37,7 @@ #include "tcop/utility.h" #include "utils/acl.h" #include "utils/builtins.h" +#include "utils/bytea.h" #include "utils/fmgroids.h" #include "utils/inval.h" #include "utils/lsyscache.h" |