Fix comment thinko in sequence.c
authorMichael Paquier <[email protected]>
Mon, 26 Feb 2024 23:19:39 +0000 (08:19 +0900)
committerMichael Paquier <[email protected]>
Mon, 26 Feb 2024 23:19:39 +0000 (08:19 +0900)
One comment mentioned indexes, but the relation opened should be
sequences.

Reported-by: Matthias van de Meent
Discussion: https://postgr.es/m/CAEze2WiMGNG9XK3NSUen-5BARhCnP=u=FXnf8pvpL2qDKeOsZg@mail.gmail.com

src/backend/access/sequence/sequence.c

index 9e30e6e08fe697d75679d87dc701b4e0584b3789..8d6b7bb5dc25b66f824d28c197bf26a07a16eefe 100644 (file)
@@ -63,7 +63,7 @@ sequence_close(Relation relation, LOCKMODE lockmode)
 /* ----------------
  *     validate_relation_kind - check the relation's kind
  *
- *     Make sure relkind is from an index
+ *     Make sure relkind is from a sequence.
  * ----------------
  */
 static inline void