v2-0002-Fix-incorrect-option-name-in-usage-screen.patch
application/octet-stream
Filename: v2-0002-Fix-incorrect-option-name-in-usage-screen.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v2-0002
Subject: Fix incorrect option name in usage screen
| File | + | − |
|---|---|---|
| src/backend/utils/activity/generate-wait_event_types.pl | 2 | 2 |
From 275d26712318d3934be1efd38bbf44bb8d841ed1 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <daniel@yesql.se>
Date: Tue, 29 Jul 2025 09:48:56 +0200
Subject: [PATCH v2 2/2] Fix incorrect option name in usage screen
The usage screen incorrectly refered to the --docs option as --sgml.
Backpatch down to v17 where this script was introduced.
Author: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/20250729.135638.1148639539103758555.horikyota.ntt@gmail.com
Backpatch-through: 17
---
src/backend/utils/activity/generate-wait_event_types.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/utils/activity/generate-wait_event_types.pl b/src/backend/utils/activity/generate-wait_event_types.pl
index 21abef860de..5db13419f25 100644
--- a/src/backend/utils/activity/generate-wait_event_types.pl
+++ b/src/backend/utils/activity/generate-wait_event_types.pl
@@ -334,12 +334,12 @@ close $wait_event_names;
sub usage
{
die <<EOM;
-Usage: perl [--output <path>] [--code ] [ --sgml ] input_file
+Usage: perl [--output <path>] [--code ] [ --docs ] input_file
Options:
--outdir Output directory (default '.')
--code Generate C and header files.
- --sgml Generate wait_event_types.sgml.
+ --docs Generate wait_event_types.sgml.
generate-wait_event_types.pl generates the SGML documentation and code
related to wait events. This should use wait_event_names.txt in input, or
--
2.39.3 (Apple Git-146)