Content-Length: 259834 | pFad | http://github.com/postgrespro/postgres/commit/aea7fe33fb6a96133c47cf4b3af25a7c62f49c06

27 Add information about line contents on parsing failure of wait_event_… · postgrespro/postgres@aea7fe3 · GitHub
Skip to content

Commit aea7fe3

Browse files
committed
Add information about line contents on parsing failure of wait_event_names.txt
The contents of the line whose parsing failed was not reported in the error message produced by generate-wait_event_types.pl, making harder than necessary the debugging of incorrectly-shaped entries in the file. Reported-by: Andres Freund Discussion: https://postgr.es/m/ZK9S3jFEV1X797Ll@paquier.xyz
1 parent 183a60a commit aea7fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/activity/generate-wait_event_types.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
# Read the sorted lines and populate the hash table
7373
foreach my $line (@lines_sorted)
7474
{
75-
die "unable to parse wait_event_names.txt"
75+
die "unable to parse wait_event_names.txt for line $line\n"
7676
unless $line =~ /^(\w+)\t+(\w+)\t+(\w+)\t+("\w.*\.")$/;
7777

7878
( my $waitclassname,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/aea7fe33fb6a96133c47cf4b3af25a7c62f49c06

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy