diff options
author | Bruce Momjian | 2002-12-06 05:20:28 +0000 |
---|---|---|
committer | Bruce Momjian | 2002-12-06 05:20:28 +0000 |
commit | e87e82d2b7c6407551988ad8c3f153128163f4a4 (patch) | |
tree | aeeb31ede91f36ad58bd11254588f07ca876a5b3 /src/include | |
parent | 88ae9cd4118a0eb4a6fd8acc87f453ec113c113d (diff) |
Attached are two small patches to expose md5 as a user function -- including
documentation and regression test mods. It seemed small and unobtrusive enough
to not require a specific proposal on the hackers list -- but if not, let me
know and I'll make a pitch. Otherwise, if there are no objections please apply.
Joe Conway
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/catversion.h | 4 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.h | 5 | ||||
-rw-r--r-- | src/include/utils/builtins.h | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index 5f60e7dfcb0..8cb41a9290b 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -37,7 +37,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: catversion.h,v 1.167 2002/12/04 05:18:35 momjian Exp $ + * $Id: catversion.h,v 1.168 2002/12/06 05:20:24 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 200212031 +#define CATALOG_VERSION_NO 200212061 #endif diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 2cc2b3519d9..348646c5490 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.278 2002/12/05 04:38:30 momjian Exp $ + * $Id: pg_proc.h,v 1.279 2002/12/06 05:20:26 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -3121,6 +3121,9 @@ DESCR("(internal)"); DATA(insert OID = 2307 ( opaque_out PGNSP PGUID 12 f f t f i 1 2275 "2282" opaque_out - _null_ )); DESCR("(internal)"); +/* cryptographic */ +DATA(insert OID = 2311 ( md5 PGNSP PGUID 12 f f t f i 1 25 "25" md5_text - _null_ )); +DESCR("calculates md5 hash"); /* * Symbolic values for provolatile column: these indicate whether the result diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index f134bdb4955..6a781dab61b 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.205 2002/11/08 17:37:52 tgl Exp $ + * $Id: builtins.h,v 1.206 2002/12/06 05:20:28 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -482,6 +482,7 @@ extern Datum replace_text(PG_FUNCTION_ARGS); extern Datum split_text(PG_FUNCTION_ARGS); extern Datum to_hex32(PG_FUNCTION_ARGS); extern Datum to_hex64(PG_FUNCTION_ARGS); +extern Datum md5_text(PG_FUNCTION_ARGS); extern Datum unknownin(PG_FUNCTION_ARGS); extern Datum unknownout(PG_FUNCTION_ARGS); |