d8783c512e
metaphone() in a contrib. There seem to be a fair number of different approaches to both of these algorithms. I used the simplest case for levenshtein which has a cost of 1 for any character insertion, deletion, or substitution. For metaphone, I adapted the same code from CPAN that the PHP folks did. A couple of questions: 1. Does it make sense to fold the soundex contrib together with this one? 2. I was debating trying to add multibyte support to levenshtein (it would make no sense at all for metaphone), but a quick search through the contrib directory found no hits on the word MULTIBYTE. Should worry about adding multibyte support to levenshtein()? Joe Conway
188 lines
4.6 KiB
Plaintext
188 lines
4.6 KiB
Plaintext
|
|
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>
|
|
|
|
dbase -
|
|
Converts from dbase/xbase to PostgreSQL
|
|
by Ivan Baldo, lubaldo@adinet.com.uy
|
|
|
|
dblink -
|
|
Allows remote query execution
|
|
by Joe Conway, joe.conway@mail.com
|
|
|
|
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>
|
|
|
|
fuzzystrmatch -
|
|
Levenshtein and Metaphone fuzzy string matching
|
|
by Joe Conway <joseph.conway@home.com>
|
|
|
|
intarray -
|
|
Index support for arrays of int4, using GiST
|
|
by Teodor Sigaev <teodor@stack.net> and Oleg Bartunov
|
|
<oleg@sai.msu.su>.
|
|
|
|
ipc_check -
|
|
Simple test script to help in configuring IPC.
|
|
FreeBSD only, for now.
|
|
|
|
isbn_issn -
|
|
PostgreSQL type extensions for ISBN (books) and ISSN (serials)
|
|
by Garrett A. Wollman <wollman@khavrinen.lcs.mit.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>
|
|
|
|
metaphone -
|
|
Improved Soundex function
|
|
by Joel Burton <jburton@scw.org>
|
|
|
|
miscutil -
|
|
PostgreSQL assert checking and various utility functions
|
|
by Massimo Dal Zotto <dz@cs.unitn.it>
|
|
|
|
mysql -
|
|
utility to convert MySQL schema dumps to SQL92 and PostgreSQL
|
|
by Thomas Lockhart <lockhart@alumni.caltech.edu>
|
|
Max Rudensky <fonin@ziet.zhitomir.ua>
|
|
Valentine Danilchuk <valdan@ziet.zhitomir.ua>
|
|
|
|
noupdate -
|
|
trigger to prevent updates on single columns
|
|
|
|
oid2name -
|
|
maps numeric files to table names
|
|
by B Palmer <bpalmer@crimelabs.net>
|
|
|
|
oracle -
|
|
converts Oracle database schema to PostgreSQL
|
|
by Gilles Darold <gilles@darold.net>
|
|
|
|
pg_controldata -
|
|
Dump contents of pg_control (database master file)
|
|
by Oliver Elphick <olly@lfix.co.uk>
|
|
|
|
pg_dumplo -
|
|
Dump large objects
|
|
by Karel Zak <zakkr@zf.jcu.cz>
|
|
|
|
pg_logger -
|
|
Stdin-to-syslog gateway for PostgreSQL
|
|
by Nathan Myers <ncm@nospam.cantrip.org>
|
|
|
|
pg_resetxlog -
|
|
Reset the WAL log (pg_xlog) to recover from crash or format change
|
|
by Tom Lane <tgl@sss.pgh.pa.us>
|
|
|
|
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>
|
|
|
|
retep -
|
|
tools to build retep tools packages
|
|
by Peter T Mount <peter@retep.org.uk>
|
|
|
|
rserv -
|
|
replication server
|
|
by Vadim B. Mikheev <vadim4o@email.com>
|
|
|
|
rtree_gist -
|
|
Support for emulating RTREE indexing in GiST
|
|
by Oleg Bartunov <oleg@sai.msu.su> and Teodor Sigaev <teodor@stack.net>
|
|
|
|
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.
|
|
|
|
start-scripts -
|
|
Scripts for starting the server at boot time.
|
|
|
|
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>
|
|
|
|
xml -
|
|
Storing XML in PostgreSQL
|
|
by John Gray <jgray@beansindustry.co.uk>
|