diff options
| author | Michael Paquier | 2023-05-02 03:23:08 +0000 |
|---|---|---|
| committer | Michael Paquier | 2023-05-02 03:23:08 +0000 |
| commit | 8961cb9a0315fa23458587b3df547ca8d8e00f85 (patch) | |
| tree | f9ea45d43d53950d56062dc9eb0cebe547503718 /src/backend/commands | |
| parent | 6fd8ae6888847da842ee4810fcd83b013cbed27f (diff) | |
Fix typos in comments
The changes done in this commit impact comments with no direct
user-visible changes, with fixes for incorrect function, variable or
structure names.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/e8c38840-596a-83d6-bd8d-cebc51111572@gmail.com
Diffstat (limited to 'src/backend/commands')
| -rw-r--r-- | src/backend/commands/opclasscmds.c | 4 | ||||
| -rw-r--r-- | src/backend/commands/subscriptioncmds.c | 4 | ||||
| -rw-r--r-- | src/backend/commands/tablecmds.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/commands/opclasscmds.c b/src/backend/commands/opclasscmds.c index 864e35e45b4..5f7ee238863 100644 --- a/src/backend/commands/opclasscmds.c +++ b/src/backend/commands/opclasscmds.c @@ -819,7 +819,7 @@ AlterOpFamily(AlterOpFamilyStmt *stmt) Oid amoid, /* our AM's oid */ opfamilyoid; /* oid of opfamily */ int maxOpNumber, /* amstrategies value */ - optsProcNumber, /* amopclassopts value */ + optsProcNumber, /* amoptsprocnum value */ maxProcNumber; /* amsupport value */ HeapTuple tup; Form_pg_am amform; @@ -1321,7 +1321,7 @@ assignProcTypes(OpFamilyMember *member, Oid amoid, Oid typeoid, /* * pg_amproc functions are indexed by (lefttype, righttype), but * an equalimage function can only be called at CREATE INDEX time. - * The same opclass opcintype OID is always used for leftype and + * The same opclass opcintype OID is always used for lefttype and * righttype. Providing a cross-type routine isn't sensible. * Reject cross-type ALTER OPERATOR FAMILY ... ADD FUNCTION 4 * statements here. diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 56eafbff10a..8b3de032eee 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -974,8 +974,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data, * * Even if new worker for this particular rel is restarted it * won't be able to make any progress as we hold exclusive - * lock on subscription_rel till the transaction end. It will - * simply exit as there is no corresponding rel entry. + * lock on pg_subscription_rel till the transaction end. It + * will simply exit as there is no corresponding rel entry. * * This locking also ensures that the state of rels won't * change till we are done with this refresh operation. diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 343fe611151..c7a8a689b7c 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -2984,7 +2984,7 @@ MergeAttributes(List *schema, List *supers, char relpersistence, * generated column, we'll take its generation expression in * preference to the parent's. We must check that the child * column doesn't specify a default value or identity, which - * matches the rules for a single column in parse_util.c. + * matches the rules for a single column in parse_utilcmd.c. * * Conversely, if the parent column is not generated, the * child column can't be either. (We used to allow that, but @@ -8017,7 +8017,7 @@ ATPrepDropExpression(Relation rel, AlterTableCmd *cmd, bool recurse, bool recurs * is a bit complicated. GENERATED clauses must be attached to the column * definition and cannot be added later like DEFAULT, so if a child table * has a generation expression that the parent does not have, the child - * column will necessarily be an attlocal column. So to implement ONLY + * column will necessarily be an attislocal column. So to implement ONLY * here, we'd need extra code to update attislocal of the direct child * tables, somewhat similar to how DROP COLUMN does it, so that the * resulting state can be properly dumped and restored. @@ -10930,7 +10930,7 @@ ATExecAlterConstraint(Relation rel, AlterTableCmd *cmd, bool recurse, } /* - * ATExecConstrRecurse already invalidated relcache for the relations + * ATExecAlterConstrRecurse already invalidated relcache for the relations * having the constraint itself; here we also invalidate for relations * that have any triggers that are part of the constraint. */ |
