[PATCH] Fix typo in pgstat_replslot.c

From: zengman <zengman(at)halodbtech(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Fix typo in pgstat_replslot.c
Date: 2026-01-07 11:21:56
Message-ID: tencent_4DC563C83443A4B1082D2BFF@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I noticed this could be corrected to `exists` (instead of `exits`) here, same as commit 63ed3bc7f9a66035e0b741aaa542de35a90fe1cc.
```c
/* Check if the slot exits with the given name. */
slot = SearchNamedReplicationSlot(name, false);

if (!slot)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("replication slot \"%s\" does not exist",
name)));
```

--
Regards,
Man Zeng
www.openhalo.org

Attachment Content-Type Size
0001-This-should-be-exists-here-instead-of-exits-consiste.patch application/octet-stream 997 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-01-07 11:38:17 Re: Newly created replication slot may be invalidated by checkpoint
Previous Message Chao Li 2026-01-07 11:21:13 Re: Remove deprecated role membership options from psql help for CREATE USER/GROUP