Add missing words in comment
authorAlvaro Herrera <[email protected]>
Mon, 22 Nov 2021 15:38:41 +0000 (12:38 -0300)
committerAlvaro Herrera <[email protected]>
Mon, 22 Nov 2021 15:38:41 +0000 (12:38 -0300)
Reported by Zhihong Yu.

Discussion: https://postgr.es/m/CALNJ-vR6uZivg_XkB1zKjEXeyZDEgoYanFXB-++1kBT9yZQoUw@mail.gmail.com

src/backend/commands/tablecmds.c

index d675d261f75473d28941b6fea4798a168ae1697a..785b282e69a0edc2c3997981c518dc3fdb1af5dc 100644 (file)
@@ -17919,9 +17919,9 @@ ATExecDetachPartition(List **wqueue, AlteredTableInfo *tab, Relation rel,
                 * constraint would change.  And there's a definitional problem: what
                 * should happen to the tuples that are being inserted that belong to
                 * the partition being detached?  Putting them on the partition being
-                * detached would be wrong, since they'd become "lost" after the but
-                * we cannot put them in the default partition either until we alter
-                * its partition constraint.
+                * detached would be wrong, since they'd become "lost" after the
+                * detaching completes but we cannot put them in the default partition
+                * either until we alter its partition constraint.
                 *
                 * I think we could solve this problem if we effected the constraint
                 * change before committing the first transaction.  But the lock would