Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/src/sgml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ errcodes-table.sgml: $(top_srcdir)/src/backend/utils/errcodes.txt.ja generate-er
keywords-table.sgml: $(top_srcdir)/src/include/parser/kwlist.h $(wildcard $(srcdir)/keywords/sql*.txt) generate-keywords-table.pl
$(PERL) $(srcdir)/generate-keywords-table.pl $(srcdir) > $@

wait_event_types.sgml: $(top_srcdir)/src/backend/utils/activity/wait_event_names.txt $(top_srcdir)/src/backend/utils/activity/generate-wait_event_types.pl
wait_event_types.sgml: $(top_srcdir)/src/backend/utils/activity/wait_event_names.txt.ja $(top_srcdir)/src/backend/utils/activity/generate-wait_event_types.pl
$(PERL) $(top_srcdir)/src/backend/utils/activity/generate-wait_event_types.pl --docs $<

targets-meson.sgml: targets-meson.txt $(srcdir)/generate-targets-meson.pl
Expand Down
14 changes: 10 additions & 4 deletions src/backend/utils/activity/generate-wait_event_types.pl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
foreach my $line (@lines_sorted)
{
die "unable to parse wait_event_names.txt for line $line\n"
unless $line =~ /^(\w+)\t+(\w+)\t+("\w.*\.")$/;
# unless $line =~ /^(\w+)\t+(\w+)\t+("\w.*\.")$/;
unless $line =~ /^(\w+)\t+(\w+)\t+(.*")$/;

(my $waitclassname, my $waiteventname, my $waitevendocsentence) =
split(/\t/, $line);
Expand Down Expand Up @@ -298,15 +299,20 @@
my $lastlc = lc $last;

printf $s " <table id=\"wait-event-%s-table\">\n", $lastlc;
#printf $s
# " <title>Wait Events of Type <literal>%s</literal></title>\n",
printf $s
" <title>Wait Events of Type <literal>%s</literal></title>\n",
" <title><literal>%s</literal>型の待機イベント</title>\n",
ucfirst($lastlc);
printf $s " <tgroup cols=\"2\">\n";
printf $s " <thead>\n";
printf $s " <row>\n";
#printf $s
# " <entry><literal>$last</literal> Wait Event</entry>\n";
#printf $s " <entry>Description</entry>\n";
printf $s
" <entry><literal>$last</literal> Wait Event</entry>\n";
printf $s " <entry>Description</entry>\n";
" <entry><literal>$last</literal>待機イベント</entry>\n";
printf $s " <entry>説明</entry>\n";
printf $s " </row>\n";
printf $s " </thead>\n\n";
printf $s " <tbody>\n";
Expand Down
Loading
Loading