head	1.3;
access;
symbols
	REL2_0B:1.2.0.2
	REL2_0:1.2
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.3
date	97.11.12.03.30.33;	author momjian;	state dead;
branches;
next	1.2;

1.2
date	96.11.13.20.48.02;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.21.18;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.21.18;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.3
log
@File has moved to include/catalog.
@
text
@@


1.2
log
@Commit of a *MAJOR* patch from Dan McGuirk <djm@@indirect.com>

Changes:

        * Unique index capability works using the syntax 'create unique
          index'.

        * Duplicate OID's in the system tables are removed.  I put
          little scripts called 'duplicate_oids' and 'find_oid' in
          include/catalog that help to find and remove duplicate OID's.
          I also moved 'unused_oids' from backend/catalog to
          include/catalog, since it has to be in the same directory
          as the include files in order to work.

        * The backend tries converting the name of a function or aggregate
          to all lowercase if the original name given doesn't work (mostly
          for compatibility with ODBC).

        * You can 'SELECT NULL' to your heart's content.

        * I put my _bt_updateitem fix in instead, which uses
          _bt_insertonpg so that even if the new key is so big that
          the page has to be split, everything still works.

        * All literal references to system catalog OID's have been
          replaced with references to define'd constants from the catalog
          header files.

        * I added a couple of node copy functions.  I think this was a
          preliminary attempt to get rules to work.
@
text
@@


1.1
log
@Initial revision
@
text
@a0 41
#!/bin/sh
# unused_oids
#
# $Header: /usr/local/cvsroot/postgres95/postgres95/src/backend/catalog/unused_oids,v 1.1.1.1 1996/07/09 05:31:35 scrappy Exp $
#
#	finds blocks of oids that have not already been claimed by 
#	post_hackers for internal purposes.  primarily useful for
#	finding valid oids for new internal function oids.  the numbers
#	printed are inclusive ranges of valid (unused) oids.
#
#	before using a large empty block, make sure you aren't about
#	to take over what was intended as expansion space for something
#	else.  also, before using a number, do a "grepsrc" to make sure 
#	that someone isn't using a literal numeric constant somewhere..
#
#	non-berkeley post_hackers should probably not try to use oids 
#	less than the highest one that comes with the distributed source.
#
#	run this script in src/backend/catalog.
#
egrep '^DATA' pg_*.h | \
	sed -e 's/^.*OID[^=]*=[^0-9]*//' -e 's/[^0-9].*$//' | \
	sort -n | \
	uniq | \
	awk '
BEGIN {
	last = 0;
}
/^[0-9]/ {
	if ($1 > last + 1) {
		if ($1 > last + 2) {
			print last + 1, "-", $1 - 1;
		} else {
			print last + 1;
		}
	}
	last = $1;
}
END {
	print last + 1, "-";
}'
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
