1
- This directory contains the contribution functions or tools.
2
1
3
- ---------------------------------------------------------------------------
2
+ The PostgreSQL contrib tree
3
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
4
4
5
- apache_logging -
6
- Getting Apache to log to PostgreSQL
7
- by Terry Mackintosh <terry@terrym.com>
5
+ FIXME:
6
+ os2client
7
+ odbc
8
+ spi/preprocessor
9
+ tools
10
+
8
11
9
- array -
10
- Array iterator functions
11
- by Massimo Dal Zotto <dz@cs.unitn.it>
12
+ - in each directory must be Makefile, possible Makefile template
13
+ is below this text,
12
14
13
- bit -
14
- Bit type
15
- by Adriaan Joubert <a.joubert@albourne.com>
15
+ --------
16
+ #
17
+ # $Header: /cvsroot/pgsql/contrib/README,v 1.18 2000/06/15 18:54:29 momjian Exp $
18
+ #
16
19
17
- datetime -
18
- Date & time functions
19
- by Massimo Dal Zotto <dz@cs.unitn.it>
20
+ TOPDIR=../..
20
21
21
- earthdistance -
22
- Operator for computing earth distance for two points
23
- by Hal Snyder <hal@vailsys.com>
22
+ include ../Makefile.global
24
23
25
- findoidjoins -
26
- Finds the joins used by oid columns by examining the actual
27
- values in the oid columns and row oids.
28
- by Bruce Momjian <root@candle.pha.pa.us>
24
+ NAME = some_name
29
25
30
- fulltextindex -
31
- Full text indexing using triggers
32
- by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>
26
+ PROGRAM =
27
+ OBJS = $(NAME).o
28
+ DOCS = $(NAME).doc
29
+ SQLS = $(NAME).sql
30
+ BINS =
31
+ EXAMPLES=
32
+ MODS = $(NAME)$(DLSUFFIX)
33
33
34
- isbn_issn -
35
- PostgreSQL type extensions for ISBN (books) and ISSN (serials)
36
- by Garrett A. Wollman <wollman@khavrinen.lcs.mit.edu>
34
+ CFLAGS += -I. $(CFLAGS_SL)
37
35
38
- likeplanning -
39
- Scripts to enable/disable new planning code for LIKE and regexp
40
- pattern match operators. These will go away again once the code
41
- is mature enough to enable by default.
42
- by Tom Lane <tgl@sss.pgh.pa.us>
36
+ OTHER_CLEAN = $(SQLS)
43
37
44
- linux -
45
- Start postgres back end system
46
- by Thomas Lockhart <lockhart@alumni.caltech.edu>
38
+ all: $(MODS) $(SQLS)
47
39
48
- lo -
49
- Large Object maintenance
50
- by Peter Mount <peter@retep.org.uk>
40
+ %.sql: %.sql.in
41
+ $(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
51
42
52
- miscutil -
53
- Postgres assert checking and various utility functions
54
- by Dal Zotto <dz@cs.unitn.it>
55
43
56
- mSQL-interface -
57
- mSQL API translation library
58
- by Aldrin Leal <aldrin@americasnet.com>
44
+ install: install_doc install_sql install_mod install_bin install_example
59
45
60
- noupdate -
61
- trigger to prevent updates on single columns
46
+ install_doc:
47
+ for inst_file in $(DOCS); do \
48
+ $(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
49
+ done
62
50
63
- pg_dumplo -
64
- Dump large objects
51
+ install_sql:
52
+ for inst_file in $(SQLS); do \
53
+ $(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_SQLDIR); \
54
+ done
65
55
66
- soundex -
67
- Prototype for soundex function
56
+ install_mod:
57
+ for inst_file in $(MODS); do \
58
+ $(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
59
+ done
68
60
69
- spi -
70
- A general trigger function autoinc() and so on.
61
+ install_bin:
62
+ for inst_file in $(BINS); do \
63
+ $(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
64
+ done
71
65
72
- string -
73
- C-like input/output conversion routines for strings
74
- by Massimo Dal Zotto <dz@cs.unitn.it>
66
+ install_example:
67
+ for inst_file in $(EXAMPLES); do \
68
+ $(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_EXAMPLESDIR); \
69
+ done
75
70
76
- tools -
77
- Assorted developer tools
78
- by Massimo Dal Zotto <dz@cs.unitn.it>
71
+ depend dep:
72
+ $(CC) -MM -MG $(CFLAGS) *.c > depend
79
73
80
- unixdate -
81
- Conversions from integer to datetime
82
- by Thomas Lockhart <lockhart@alumni.caltech.edu>
74
+ clean:
75
+ $(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
83
76
84
- userlock -
85
- User locks
86
- by Massimo Dal Zotto <dz@cs.unitn.it>
87
-
88
- vacuumlo -
89
- Remove orphaned large objects
90
- by Peter T Mount <peter@retep.org.uk>
91
-
92
- pgbench -
93
- TPC-B like benchmarking tool
94
- by Tatsuo Ishii <t-ishii@sra.co.jp>
77
+ ifeq (depend,$(wildcard depend))
78
+ include depend
79
+ endif
80
+ -----------
81
+
0 commit comments