Skip to content

Commit 2359dbd

Browse files
Chao Li (Evan)hackorum
authored andcommitted
Docs: make documentation source file references consistent
The documentation currently mixes bare filenames and full source-tree paths when referring to PostgreSQL source files and headers. Update these references to consistently use full paths within the source tree (e.g., src/include/…, src/backend/…). Author: Chao Li <lic@highgo.com>
1 parent 31878cc commit 2359dbd

18 files changed

Lines changed: 33 additions & 33 deletions

‎doc/src/sgml/config.sgml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12918,8 +12918,8 @@ dynamic_library_path = '/usr/local/lib/postgresql:$libdir'
1291812918
This parameter can be very helpful when trying to trigger
1291912919
hard-to-reproduce bugs involving concurrent catalog changes, but it
1292012920
is otherwise rarely needed. See the source code files
12921-
<filename>inval.c</filename> and
12922-
<filename>pg_config_manual.h</filename> for details.
12921+
<filename>src/backend/utils/cache/inval.c</filename> and
12922+
<filename>src/include/pg_config_manual.h</filename> for details.
1292312923
</para>
1292412924

1292512925
<para>
@@ -13045,7 +13045,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:$libdir'
1304513045
<listitem>
1304613046
<para>
1304713047
Enabling this forces all parse and plan trees to be passed through
13048-
<filename>outfuncs.c</filename>/<filename>readfuncs.c</filename>, to
13048+
<filename>src/backend/nodes/outfuncs.c</filename> and <filename>src/backend/nodes/readfuncs.c</filename>, to
1304913049
facilitate catching errors and omissions in those modules. The
1305013050
default is off.
1305113051
</para>

‎doc/src/sgml/cube.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ t
597597
<para>
598598
To make it harder for people to break things, there
599599
is a limit of 100 on the number of dimensions of cubes. This is set
600-
in <filename>cubedata.h</filename> if you need something bigger.
600+
in <filename>contrib/cube/cubedata.h</filename> if you need something bigger.
601601
</para>
602602
</sect2>
603603

‎doc/src/sgml/ecpg.sgml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4196,7 +4196,7 @@ typedef struct sqlvar_struct sqlvar_t;
41964196
<listitem>
41974197
<para>
41984198
Contains the type identifier of the field. For values,
4199-
see <literal>enum ECPGttype</literal> in <literal>ecpgtype.h</literal>.
4199+
see <literal>enum ECPGttype</literal> in <literal>src/interfaces/ecpg/include/ecpgtype.h</literal>.
42004200
</para>
42014201
</listitem>
42024202
</varlistentry>
@@ -8597,8 +8597,8 @@ EXEC SQL INCLUDE sqlda.h;
85978597
free(sqlda); /* The main structure is all to be free(),
85988598
* sqlda and sqlda-&gt;sqlvar is in one allocated area */
85998599
</programlisting>
8600-
For more information, see the <literal>sqlda.h</literal> header and the
8601-
<literal>src/interfaces/ecpg/test/compat_informix/sqlda.pgc</literal> regression test.
8600+
For more information, see the <filename>src/interfaces/ecpg/include/sqlda.h</filename> header and the
8601+
<filename>src/interfaces/ecpg/test/compat_informix/sqlda.pgc</filename> regression test.
86028602
</para>
86038603
</sect2>
86048604

‎doc/src/sgml/fdwhandler.sgml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ GetForeignDataWrapperExtended(Oid fdwid, uint16 flags);
17541754
This function returns a <structname>ForeignDataWrapper</structname>
17551755
object for the foreign-data wrapper with the given OID. A
17561756
<structname>ForeignDataWrapper</structname> object contains properties
1757-
of the FDW (see <filename>foreign/foreign.h</filename> for details).
1757+
of the FDW (see <filename>src/include/foreign/foreign.h</filename> for details).
17581758
<structfield>flags</structfield> is a bitwise-or'd bit mask indicating
17591759
an extra set of options. It can take the value
17601760
<literal>FDW_MISSING_OK</literal>, in which case a <literal>NULL</literal>
@@ -1771,7 +1771,7 @@ GetForeignDataWrapper(Oid fdwid);
17711771
This function returns a <structname>ForeignDataWrapper</structname>
17721772
object for the foreign-data wrapper with the given OID. A
17731773
<structname>ForeignDataWrapper</structname> object contains properties
1774-
of the FDW (see <filename>foreign/foreign.h</filename> for details).
1774+
of the FDW (see <filename>src/include/foreign/foreign.h</filename> for details).
17751775
</para>
17761776

17771777
<para>
@@ -1783,7 +1783,7 @@ GetForeignServerExtended(Oid serverid, uint16 flags);
17831783
This function returns a <structname>ForeignServer</structname> object
17841784
for the foreign server with the given OID. A
17851785
<structname>ForeignServer</structname> object contains properties
1786-
of the server (see <filename>foreign/foreign.h</filename> for details).
1786+
of the server (see <filename>src/include/foreign/foreign.h</filename> for details).
17871787
<structfield>flags</structfield> is a bitwise-or'd bit mask indicating
17881788
an extra set of options. It can take the value
17891789
<literal>FSV_MISSING_OK</literal>, in which case a <literal>NULL</literal>
@@ -1800,7 +1800,7 @@ GetForeignServer(Oid serverid);
18001800
This function returns a <structname>ForeignServer</structname> object
18011801
for the foreign server with the given OID. A
18021802
<structname>ForeignServer</structname> object contains properties
1803-
of the server (see <filename>foreign/foreign.h</filename> for details).
1803+
of the server (see <filename>src/include/foreign/foreign.h</filename> for details).
18041804
</para>
18051805

18061806
<para>
@@ -1814,7 +1814,7 @@ GetUserMapping(Oid userid, Oid serverid);
18141814
mapping for the specific user, it will return the mapping for
18151815
<literal>PUBLIC</literal>, or throw error if there is none.) A
18161816
<structname>UserMapping</structname> object contains properties of the
1817-
user mapping (see <filename>foreign/foreign.h</filename> for details).
1817+
user mapping (see <filename>src/include/foreign/foreign.h</filename> for details).
18181818
</para>
18191819

18201820
<para>
@@ -1826,7 +1826,7 @@ GetForeignTable(Oid relid);
18261826
This function returns a <structname>ForeignTable</structname> object for
18271827
the foreign table with the given OID. A
18281828
<structname>ForeignTable</structname> object contains properties of the
1829-
foreign table (see <filename>foreign/foreign.h</filename> for details).
1829+
foreign table (see <filename>src/include/foreign/foreign.h</filename> for details).
18301830
</para>
18311831

18321832
<para>

‎doc/src/sgml/generic-wal.sgml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
<para>
2121
The API for constructing generic WAL records is defined in
22-
<filename>access/generic_xlog.h</filename> and implemented
23-
in <filename>access/transam/generic_xlog.c</filename>.
22+
<filename>src/include/access/generic_xlog.h</filename> and implemented
23+
in <filename>src/backend/access/transam/generic_xlog.c</filename>.
2424
</para>
2525

2626
<para>

‎doc/src/sgml/gin.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
in most cases is probably not a good candidate for a GIN operator
228228
class.)
229229
The symbols to use for setting this mode are defined in
230-
<filename>access/gin.h</filename>.
230+
<filename>src/include/access/gin.h</filename>.
231231
</para>
232232

233233
<para>

‎doc/src/sgml/indexam.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ amadjustmembers (Oid opfamilyoid,
625625
case <parameter>opclassoid</parameter> is <literal>InvalidOid</literal>.
626626
The <type>List</type> arguments are lists
627627
of <structname>OpFamilyMember</structname> structs, as defined
628-
in <filename>amapi.h</filename>.
628+
in <filename>src/include/access/amapi.h</filename>.
629629

630630
Tests done by this function will typically be a subset of those
631631
performed by <function>amvalidate</function>,

‎doc/src/sgml/indices.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ CREATE INDEX test2_mm_idx ON test2 (major, minor);
451451
can be added to the index. Indexes can have up to 32 columns,
452452
including <literal>INCLUDE</literal> columns. (This limit can be
453453
altered when building <productname>PostgreSQL</productname>; see the
454-
file <filename>pg_config_manual.h</filename>.)
454+
file <filename>src/include/pg_config_manual.h</filename>.)
455455
</para>
456456

457457
<para>

‎doc/src/sgml/libpq.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4580,7 +4580,7 @@ Oid PQftype(const PGresult *res,
45804580
You can query the system table <structname>pg_type</structname> to
45814581
obtain the names and properties of the various data types. The
45824582
<acronym>OID</acronym>s of the built-in data types are defined
4583-
in the file <filename>catalog/pg_type_d.h</filename>
4583+
in the file <filename>src/include/catalog/pg_type_d.h</filename>
45844584
in the <productname>PostgreSQL</productname>
45854585
installation's <filename>include</filename> directory.
45864586
</para>

‎doc/src/sgml/pgbuffercache.sgml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
</para>
214214
<para>
215215
Fork number within the relation; see
216-
<filename>common/relpath.h</filename>
216+
<filename>src/include/common/relpath.h</filename>
217217
</para></entry>
218218
</row>
219219

0 commit comments

Comments
 (0)