Fix incorrect source filename references
authorDavid Rowley <drowley@postgresql.org>
Mon, 23 Dec 2024 06:41:49 +0000 (19:41 +1300)
committerDavid Rowley <drowley@postgresql.org>
Mon, 23 Dec 2024 06:41:49 +0000 (19:41 +1300)
Jian He reported the src/include/utility/tcop.h one and the remainder
were found by using a script to look for src/* and check that we have a
filename or directory of that name.

In passing, fix some out-date comments.

Reported-by: Jian He <jian.universality@gmail.com>
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CACJufxGoE3H-7VgO02=PrR4SNuVWDVbfTyUnwO0HvS-Lxurnog@mail.gmail.com

13 files changed:
src/backend/commands/aggregatecmds.c
src/backend/commands/define.c
src/backend/commands/functioncmds.c
src/backend/commands/operatorcmds.c
src/backend/commands/typecmds.c
src/backend/tcop/utility.c
src/backend/utils/misc/guc_internal.h
src/fe_utils/astreamer_file.c
src/fe_utils/astreamer_gzip.c
src/fe_utils/astreamer_lz4.c
src/fe_utils/astreamer_tar.c
src/fe_utils/astreamer_zstd.c
src/include/fe_utils/astreamer.h

index fde5a2a0e04966670166745c71898cc6cf66591c..3f117d8e2c658cdd426db59d4ed2e4adbed71b9a 100644 (file)
  *   src/backend/commands/aggregatecmds.c
  *
  * DESCRIPTION
- *   The "DefineFoo" routines take the parse tree and pick out the
+ *   The "DefineAggregate" routine takes the parse tree and picks out the
  *   appropriate arguments/flags, passing the results to the
- *   corresponding "FooDefine" routines (in src/catalog) that do
- *   the actual catalog-munging.  These routines also verify permission
- *   of the user to execute the command.
+ *   "AggregateCreate" routine (in src/backend/catalog), which does the
+ *   actual catalog-munging.  DefineAggregate also verifies the permission of
+ *   the user to execute the command.
  *
  *-------------------------------------------------------------------------
  */
index 43f50066ea0611b6a76c3a7b9303e7d7f1638752..8921b2793122cd6ee11208a9668ff9a6d89c7d7a 100644 (file)
  *   src/backend/commands/define.c
  *
  * DESCRIPTION
- *   The "DefineFoo" routines take the parse tree and pick out the
- *   appropriate arguments/flags, passing the results to the
- *   corresponding "FooDefine" routines (in src/catalog) that do
- *   the actual catalog-munging.  These routines also verify permission
- *   of the user to execute the command.
- *
- * NOTES
- *   These things must be defined and committed in the following order:
- *     "create function":
- *             input/output, recv/send procedures
- *     "create type":
- *             type
- *     "create operator":
- *             operators
+ *   Support routines for dealing with DefElem nodes.
  *
  *
  *-------------------------------------------------------------------------
index 6fc3863265d03d8694e285da85df3c3b341c09d5..82dd659893795a1f4434ba2b685677db2aa0e374 100644 (file)
@@ -15,7 +15,7 @@
  * DESCRIPTION
  *   These routines take the parse tree and pick out the
  *   appropriate arguments/flags, and pass the results to the
- *   corresponding "FooDefine" routines (in src/catalog) that do
+ *   corresponding "FooCreate" routines (in src/backend/catalog) that do
  *   the actual catalog-munging.  These routines also verify permission
  *   of the user to execute the command.
  *
index 5872a3e1922dd14ee43614fbc41a43f4ce549f3c..ec8b053ba486af60326fde167988c140713fbcdf 100644 (file)
@@ -14,7 +14,7 @@
  * DESCRIPTION
  *   The "DefineFoo" routines take the parse tree and pick out the
  *   appropriate arguments/flags, passing the results to the
- *   corresponding "FooDefine" routines (in src/catalog) that do
+ *   corresponding "FooCreate" routines (in src/backend/catalog) that do
  *   the actual catalog-munging.  These routines also verify permission
  *   of the user to execute the command.
  *
index 4f20b5be064d5262cbfd1484dd79bc9f4620a5a7..a6bb0b70f5db26cd2ea67de7251d8f5e61402c14 100644 (file)
@@ -13,7 +13,7 @@
  * DESCRIPTION
  *   The "DefineFoo" routines take the parse tree and pick out the
  *   appropriate arguments/flags, passing the results to the
- *   corresponding "FooDefine" routines (in src/catalog) that do
+ *   corresponding "FooCreate" routines (in src/backend/catalog) that do
  *   the actual catalog-munging.  These routines also verify permission
  *   of the user to execute the command.
  *
index 33dea5a781c72ccfc0d20184546ed06ea0d0d9b0..c2ed8214ef6f69c9bda877c146f7e247b99d1229 100644 (file)
@@ -122,7 +122,7 @@ CommandIsReadOnly(PlannedStmt *pstmt)
 /*
  * Determine the degree to which a utility command is read only.
  *
- * Note the definitions of the relevant flags in src/include/utility/tcop.h.
+ * Note the definitions of the relevant flags in src/include/tcop/utility.h.
  */
 static int
 ClassifyUtilityCommandAsReadOnly(Node *parsetree)
index 9695dcd5b7ddee458848501cb63083ce5a368852..91acc1b3206f3b76bb27c979bdd370033e753c7a 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 2000-2024, PostgreSQL Global Development Group
  *
- * src/include/utils/guc_internal.h
+ * src/backend/utils/misc/guc_internal.h
  *--------------------------------------------------------------------
  */
 #ifndef GUC_INTERNAL_H
index 47568da2dbb3247a804439e544069ca7ab208dd3..b20ef5019c9c33f2c588c1ef51982f261b16699f 100644 (file)
@@ -9,7 +9,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer_file.c
+ *       src/fe_utils/astreamer_file.c
  *-------------------------------------------------------------------------
  */
 
index e0b755317cbad27c6eda76963ae0f20f9fa39fe3..8f966a34b510edd0d9181b44d7c3a984cf8af1d3 100644 (file)
@@ -20,7 +20,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer_gzip.c
+ *       src/fe_utils/astreamer_gzip.c
  *-------------------------------------------------------------------------
  */
 
index a628088edfad2a88f815f875a4ff7c9540516a02..98c83139ef812847ffc63237ebfcd0edb2d9a924 100644 (file)
@@ -9,7 +9,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer_lz4.c
+ *       src/fe_utils/astreamer_lz4.c
  *-------------------------------------------------------------------------
  */
 
index f5d3562d280ae6b06f35ed82b59f56e57a9e2509..53a956a71d9952e2ac3d834b1275cdb5f0b2c6ff 100644 (file)
@@ -15,7 +15,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer_tar.c
+ *       src/fe_utils/astreamer_tar.c
  *-------------------------------------------------------------------------
  */
 
index 4b2d42b23119d0a5b7989b1a277c3432756fc49a..525ca64a2e5553206dbf0af2e8218603ffcb050f 100644 (file)
@@ -9,7 +9,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer_zstd.c
+ *       src/fe_utils/astreamer_zstd.c
  *-------------------------------------------------------------------------
  */
 
index 570cfba30409b6789255ec4628ace04318de4558..7aa10b4f5e560b5b040d64e50bcd9d1dd0121436 100644 (file)
@@ -24,7 +24,7 @@
  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       src/bin/pg_basebackup/astreamer.h
+ *       src/include/fe_utils/astreamer.h
  *-------------------------------------------------------------------------
  */