Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f5c47e

Browse files
committed
Move findoidjoins out of contrib and into src/tools, which is a more
logical place for it since it is of no use to users. Per recentdiscussions on cleaning up contrib.
1 parent5b0c9d3 commit2f5c47e

File tree

7 files changed

+35
-36
lines changed

7 files changed

+35
-36
lines changed

‎contrib/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/contrib/Makefile,v 1.55 2005/06/22 22:56:25 tgl Exp $
1+
# $PostgreSQL: pgsql/contrib/Makefile,v 1.56 2005/06/23 02:33:25 tgl Exp $
22

33
subdir = contrib
44
top_builddir = ..
@@ -13,7 +13,6 @@ WANTED_DIRS = \
1313
dbmirror\
1414
dbsize\
1515
earthdistance\
16-
findoidjoins\
1716
fulltextindex\
1817
fuzzystrmatch\
1918
intagg\

‎contrib/README

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ earthdistance -
6262
Operator for computing earth distance for two points
6363
by Hal Snyder <hal@vailsys.com>
6464

65-
findoidjoins -
66-
Finds the joins used by oid columns by examining the actual
67-
values in the oid columns and row oids.
68-
by Bruce Momjian <pgman@candle.pha.pa.us>
69-
7065
fulltextindex -
7166
Full text indexing using triggers
7267
by Maarten Boekhold <maartenb@dutepp0.et.tudelft.nl>

‎contrib/findoidjoins/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎src/tools/findoidjoins/Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#-------------------------------------------------------------------------
2+
#
3+
# Makefile for src/tools/findoidjoins
4+
#
5+
# Copyright (c) 2003-2005, PostgreSQL Global Development Group
6+
#
7+
# $PostgreSQL: pgsql/src/tools/findoidjoins/Makefile,v 1.1 2005/06/23 02:33:28 tgl Exp $
8+
#
9+
#-------------------------------------------------------------------------
10+
11+
subdir = src/tools/findoidjoins
12+
top_builddir = ../../..
13+
include$(top_builddir)/src/Makefile.global
14+
15+
overrideCPPFLAGS := -DFRONTEND -I$(libpq_srcdir)$(CPPFLAGS)
16+
17+
OBJS= findoidjoins.o
18+
19+
all: submake-libpq submake-libpgport findoidjoins
20+
21+
findoidjoins: findoidjoins.o$(libpq_builddir)/libpq.a
22+
$(CC)$(CFLAGS) findoidjoins.o$(libpq_pgport)$(LDFLAGS)$(LIBS) -o$@$(X)
23+
24+
cleandistcleanmaintainer-clean:
25+
rm -f findoidjoins$(X)$(OBJS)

‎contrib/findoidjoins/README.findoidjoinsrenamed to‎src/tools/findoidjoins/README

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ anything but an empty database, such as template1; else it's likely to
77
be very slow.
88

99
Run on an empty database, it returns the system join relationships (shown
10-
below for 8.0). Note that unexpected matches may indicate bogus entries
10+
below for 8.1). Note that unexpected matches may indicate bogus entries
1111
in system tables --- don't accept a peculiar match without question.
1212
In particular, a field shown as joining to more than one target table is
13-
probably messed up. In 8.0, the *only* fields that should join to more
13+
probably messed up. In 8.1, the *only* fields that should join to more
1414
than one target are pg_description.objoid, pg_depend.objid, and
1515
pg_depend.refobjid. (Running make_oidjoins_check is an easy way to spot
1616
fields joining to more than one table, BTW.)
@@ -26,22 +26,22 @@ revision in the patterns of cross-links between system tables.
2626
(Ideally we'd just regenerate the script as part of the regression
2727
tests themselves, but that seems too slow...)
2828

29-
NOTE: in 8.0, make_oidjoins_check producesone bogus joincheck:
29+
NOTE: in 8.1, make_oidjoins_check producestwo bogus joinchecks:
3030
Join pg_catalog.pg_class.relfilenode => pg_catalog.pg_class.oid
31-
This is an artifact and should not be added to the oidjoins regress test.
32-
Also beware of any claim that pg_database.datlastsysoid joins to anything;
33-
this does not actually happen in 8.0, but it did happen before and might
34-
happen again in future, depending on what operation initdb does last.
31+
Join pg_catalog.pg_database.datlastsysoid => pg_catalog.pg_database.oid
32+
These are artifacts and should not be added to the oidjoins regress test.
3533

3634
---------------------------------------------------------------------------
3735

3836
Join pg_catalog.pg_aggregate.aggfnoid => pg_catalog.pg_proc.oid
3937
Join pg_catalog.pg_aggregate.aggtransfn => pg_catalog.pg_proc.oid
4038
Join pg_catalog.pg_aggregate.aggfinalfn => pg_catalog.pg_proc.oid
39+
Join pg_catalog.pg_aggregate.aggsortop => pg_catalog.pg_operator.oid
4140
Join pg_catalog.pg_aggregate.aggtranstype => pg_catalog.pg_type.oid
42-
Join pg_catalog.pg_am.amgettuple => pg_catalog.pg_proc.oid
4341
Join pg_catalog.pg_am.aminsert => pg_catalog.pg_proc.oid
4442
Join pg_catalog.pg_am.ambeginscan => pg_catalog.pg_proc.oid
43+
Join pg_catalog.pg_am.amgettuple => pg_catalog.pg_proc.oid
44+
Join pg_catalog.pg_am.amgetmulti => pg_catalog.pg_proc.oid
4545
Join pg_catalog.pg_am.amrescan => pg_catalog.pg_proc.oid
4646
Join pg_catalog.pg_am.amendscan => pg_catalog.pg_proc.oid
4747
Join pg_catalog.pg_am.ammarkpos => pg_catalog.pg_proc.oid

‎contrib/findoidjoins/findoidjoins.crenamed to‎src/tools/findoidjoins/findoidjoins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/contrib/findoidjoins/findoidjoins.c,v 1.25 2005/01/01 05:43:05 momjian Exp $
6+
* $PostgreSQL: pgsql/src/tools/findoidjoins/findoidjoins.c,v 1.1 2005/06/23 02:33:28 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp