postgresql/contrib/miscutil
Bruce Momjian 558fae16e3 The attached patch enables the contrib subtree to build cleanly under
Cygwin with the possible exception of mSQL-interface.  Since I don't
have mSQL installed, I skipped this tool.

Except for dealing with a missing getopt.h (oid2name) and HUGE (seg),
the bulk of the patch uses the standard PostgreSQL approach to deal with
Windows DLL issues.

I tested the build aspect of this patch under Cygwin and Linux without
any ill affects.  Note that I did not actually attempt to test the code
for functionality.

The procedure to apply the patch is as follows:

    $ # save the attachment as /tmp/contrib.patch
    $ # change directory to the top of the PostgreSQL source tree
    $ patch -p0 </tmp/contrib.patch

Jason
2001-06-18 21:38:02 +00:00
..
Makefile The attached patch enables the contrib subtree to build cleanly under 2001-06-18 21:38:02 +00:00
README.misc_utils Remove old, broken code for query_limit(), assert_enable(), 2000-11-22 19:34:49 +00:00
misc_utils.c Remove old, broken code for query_limit(), assert_enable(), 2000-11-22 19:34:49 +00:00
misc_utils.h Remove old, broken code for query_limit(), assert_enable(), 2000-11-22 19:34:49 +00:00
misc_utils.sql.in Remove old, broken code for query_limit(), assert_enable(), 2000-11-22 19:34:49 +00:00

README.misc_utils

Miscellaneous utility functions for PostgreSQL.
Copyright (C) 1999, Massimo Dal Zotto <dz@cs.unitn.it>

This software is distributed under the GNU General Public License
either version 2, or (at your option) any later version.

backend_pid()

	return the pid of our corresponding backend.

unlisten(relname)

	unlisten from a relation or from all relations if the argument
	is null, empty or '*'.
	It is now obsoleted by the new unlisten command but still useful
	if you want unlisten a name computed by the query.
	Note that a listen/notify relname can be any ascii string, not
	just valid relation names.

min(x,y)
max(x,y)

	return the min or max of two integers.

-- 
Massimo Dal Zotto <dz@cs.unitn.it>