cb5427ee47
timing, I know :)) At the moment the digest() function returns hexadecimal coded hash, but I want it to return pure binary. I have also included functions encode() and decode() which support 'base64' and 'hex' encodings, so if anyone needs digest() in hex he can do encode(digest(...), 'hex'). Main reason for it is "to do one thing and do it well" :) Another reason is if someone needs really lot of digesting, in the end he wants to store the binary not the hexadecimal result. It is really silly to convert it to hex then back to binary again. As I said if someone needs hex he can get it. Well, and the real reason that I am doing encrypt()/decrypt() functions and _they_ return binary. For testing I like to see it in hex occasionally, but it is really wrong to let them return hex. Only now it caught my eye that hex-coding in digest() is wrong. When doing digest() I thought about 'common case' but hacking with psql is probably _not_ the common case :) Marko Kreen |
||
---|---|---|
.. | ||
array | ||
cube | ||
earthdistance | ||
findoidjoins | ||
fulltextindex | ||
intarray | ||
isbn_issn | ||
linux | ||
lo | ||
mac | ||
miscutil | ||
mSQL-interface | ||
mysql | ||
noupdate | ||
oid2name | ||
pg_dumplo | ||
pgbench | ||
pgcrypto | ||
retep | ||
rserv | ||
seg | ||
soundex | ||
spi | ||
string | ||
tips | ||
tools | ||
unixdate | ||
userlock | ||
vacuumlo | ||
Makefile | ||
README |
The PostgreSQL contrib tree ~~~~~~~~~~~~~~~~~~~~~~~~~~~ This subtree contains tools, modules, and examples that are not maintained as part of the core PostgreSQL system, mainly because they only address a limited audience or are too inelegant to be sold as an official feature. That, however, does not preclude their usefulness. Each subdirectory contains a README file with information about the module. Most items can be built with `gmake all' and installed with `gmake install' in the usual fashion, after you have run the `configure' script in the top-level directory. Some directories supply new user-defined functions, operators, or types. After you have installed the files you need to register the new entities in the database system by running the commands in the supplied .sql file. For example, $ psql -d dbname -f module.sql See the PostgreSQL documentation for more information about this procedure. Index: ------ array - Array iterator functions by Massimo Dal Zotto <dz@cs.unitn.it> cube - Multidimensional-cube datatype (GiST indexing example) by Gene Selkov, Jr. <selkovjr@mcs.anl.gov> earthdistance - Operator for computing earth distance for two points by Hal Snyder <hal@vailsys.com> findoidjoins - Finds the joins used by oid columns by examining the actual values in the oid columns and row oids. by Bruce Momjian <pgman@candle.pha.pa.us> fulltextindex - Full text indexing using triggers by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl> intarray - Index support for arrays of int4, using GiST by Teodor Sigaev <teodor@stack.net> and Oleg Bartunov <oleg@sai.msu.su>. isbn_issn - PostgreSQL type extensions for ISBN (books) and ISSN (serials) by Garrett A. Wollman <wollman@khavrinen.lcs.mit.edu> linux - Scripts for starting and stopping the PostgreSQL server on a Linux system by Thomas Lockhart <lockhart@alumni.caltech.edu> lo - Large Object maintenance by Peter Mount <peter@retep.org.uk> mSQL-interface - mSQL API translation library by Aldrin Leal <aldrin@americasnet.com> mac - Support functions for MAC address types by Lawrence E. Rosenman <ler@lerctr.org> miscutil - PostgreSQL assert checking and various utility functions by Massimo Dal Zotto <dz@cs.unitn.it> noupdate - trigger to prevent updates on single columns pg_dumplo - Dump large objects by Karel Zak <zakkr@zf.jcu.cz> pgbench - TPC-B like benchmarking tool by Tatsuo Ishii <t-ishii@sra.co.jp> pgcrypto - Cryptographic hash functions by Marko Kreen <marko@l-t.ee> seg - Confidence-interval datatype (GiST indexing example) by Gene Selkov, Jr. <selkovjr@mcs.anl.gov> soundex - Soundex function spi - Various trigger functions, examples for using SPI. string - C-like input/output conversion routines for strings by Massimo Dal Zotto <dz@cs.unitn.it> tips/apache_logging - Getting Apache to log to PostgreSQL by Terry Mackintosh <terry@terrym.com> tools - Assorted developer tools by Massimo Dal Zotto <dz@cs.unitn.it> unixdate - Conversions from integer to datetime by Thomas Lockhart <lockhart@alumni.caltech.edu> userlock - User locks by Massimo Dal Zotto <dz@cs.unitn.it> vacuumlo - Remove orphaned large objects by Peter T Mount <peter@retep.org.uk>