@@ -5,7 +5,7 @@ findoidjoins
5
5
6
6
This program scans a database and prints oid fields (also reg* fields)
7
7
and the tables they join to. It is normally used to check the system
8
- catalog join relationships (shown below for 9.2devel as of 2011-11-14 ).
8
+ catalog join relationships (shown below for 9.4devel as of 2014-04-16 ).
9
9
10
10
Historically this has been run against an empty database such as template1,
11
11
but there's a problem with that approach: some of the catalogs are empty
@@ -16,7 +16,7 @@ catalogs in interesting ways.
16
16
Note that unexpected matches may indicate bogus entries in system tables;
17
17
don't accept a peculiar match without question. In particular, a field
18
18
shown as joining to more than one target table is probably messed up.
19
- In 9.2devel , the *only* fields that should join to more than one target
19
+ In 9.4devel , the *only* fields that should join to more than one target
20
20
table are pg_description.objoid, pg_depend.objid, pg_depend.refobjid,
21
21
pg_shdescription.objoid, pg_shdepend.objid, and pg_shdepend.refobjid.
22
22
(Running make_oidjoins_check is an easy way to spot fields joining to more
@@ -33,20 +33,24 @@ regression test. The oidjoins test should be updated after any
33
33
revision in the patterns of cross-links between system tables.
34
34
(Typically we update it at the end of each development cycle.)
35
35
36
- NOTE: as of 9.2devel , make_oidjoins_check produces two bogus join checks:
36
+ NOTE: as of 9.4devel , make_oidjoins_check produces two bogus join checks:
37
37
Join pg_catalog.pg_class.relfilenode => pg_catalog.pg_class.oid
38
38
Join pg_catalog.pg_database.datlastsysoid => pg_catalog.pg_database.oid
39
- These are artifacts and should not be added to the oidjoins regress test.
39
+ These are artifacts and should not be added to the oidjoins regression test.
40
40
You might also get output for pg_shdepend.refobjid and pg_shdescription.objoid,
41
- neither of which should be added to the regress test.
41
+ neither of which should be added to the regression test.
42
42
43
43
---------------------------------------------------------------------------
44
44
45
45
Join pg_catalog.pg_aggregate.aggfnoid => pg_catalog.pg_proc.oid
46
46
Join pg_catalog.pg_aggregate.aggtransfn => pg_catalog.pg_proc.oid
47
47
Join pg_catalog.pg_aggregate.aggfinalfn => pg_catalog.pg_proc.oid
48
+ Join pg_catalog.pg_aggregate.aggmtransfn => pg_catalog.pg_proc.oid
49
+ Join pg_catalog.pg_aggregate.aggminvtransfn => pg_catalog.pg_proc.oid
50
+ Join pg_catalog.pg_aggregate.aggmfinalfn => pg_catalog.pg_proc.oid
48
51
Join pg_catalog.pg_aggregate.aggsortop => pg_catalog.pg_operator.oid
49
52
Join pg_catalog.pg_aggregate.aggtranstype => pg_catalog.pg_type.oid
53
+ Join pg_catalog.pg_aggregate.aggmtranstype => pg_catalog.pg_type.oid
50
54
Join pg_catalog.pg_am.amkeytype => pg_catalog.pg_type.oid
51
55
Join pg_catalog.pg_am.aminsert => pg_catalog.pg_proc.oid
52
56
Join pg_catalog.pg_am.ambeginscan => pg_catalog.pg_proc.oid
@@ -60,6 +64,7 @@ Join pg_catalog.pg_am.ambuild => pg_catalog.pg_proc.oid
60
64
Join pg_catalog.pg_am.ambuildempty => pg_catalog.pg_proc.oid
61
65
Join pg_catalog.pg_am.ambulkdelete => pg_catalog.pg_proc.oid
62
66
Join pg_catalog.pg_am.amvacuumcleanup => pg_catalog.pg_proc.oid
67
+ Join pg_catalog.pg_am.amcanreturn => pg_catalog.pg_proc.oid
63
68
Join pg_catalog.pg_am.amcostestimate => pg_catalog.pg_proc.oid
64
69
Join pg_catalog.pg_am.amoptions => pg_catalog.pg_proc.oid
65
70
Join pg_catalog.pg_amop.amopfamily => pg_catalog.pg_opfamily.oid
@@ -152,6 +157,8 @@ Join pg_catalog.pg_statistic.starelid => pg_catalog.pg_class.oid
152
157
Join pg_catalog.pg_statistic.staop1 => pg_catalog.pg_operator.oid
153
158
Join pg_catalog.pg_statistic.staop2 => pg_catalog.pg_operator.oid
154
159
Join pg_catalog.pg_statistic.staop3 => pg_catalog.pg_operator.oid
160
+ Join pg_catalog.pg_statistic.staop4 => pg_catalog.pg_operator.oid
161
+ Join pg_catalog.pg_statistic.staop5 => pg_catalog.pg_operator.oid
155
162
Join pg_catalog.pg_tablespace.spcowner => pg_catalog.pg_authid.oid
156
163
Join pg_catalog.pg_trigger.tgrelid => pg_catalog.pg_class.oid
157
164
Join pg_catalog.pg_trigger.tgfoid => pg_catalog.pg_proc.oid
0 commit comments