Skip to content

Commit 4120571

Browse files
committed
Change Graphviz file extension
Change extension for Graphviz files from .dot to .gv. The latter appears to be the generally preferred one nowadays. Discussion: https://www.postgresql.org/message-id/flat/71fe76d2-c7d7-2acc-6762-bbf9e61c566e%402ndquadrant.com
1 parent 02aa15d commit 4120571

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

contrib/pg_trgm/trgm_regexp.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
/*
203203
* Uncomment (or use -DTRGM_REGEXP_DEBUG) to print debug info,
204204
* for exploring and debugging the algorithm implementation.
205-
* This produces three graph files in /tmp, in Graphviz .dot format.
205+
* This produces three graph files in /tmp, in Graphviz .gv format.
206206
* Some progress information is also printed to postmaster stderr.
207207
*/
208208
/* #define TRGM_REGEXP_DEBUG */
@@ -2187,8 +2187,8 @@ printSourceNFA(regex_t *regex, TrgmColorInfo *colors, int ncolors)
21872187
appendStringInfoString(&buf, "}\n");
21882188

21892189
{
2190-
/* dot -Tpng -o /tmp/source.png < /tmp/source.dot */
2191-
FILE *fp = fopen("/tmp/source.dot", "w");
2190+
/* dot -Tpng -o /tmp/source.png < /tmp/source.gv */
2191+
FILE *fp = fopen("/tmp/source.gv", "w");
21922192

21932193
fprintf(fp, "%s", buf.data);
21942194
fclose(fp);
@@ -2249,8 +2249,8 @@ printTrgmNFA(TrgmNFA *trgmNFA)
22492249
appendStringInfoString(&buf, "}\n");
22502250

22512251
{
2252-
/* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.dot */
2253-
FILE *fp = fopen("/tmp/transformed.dot", "w");
2252+
/* dot -Tpng -o /tmp/transformed.png < /tmp/transformed.gv */
2253+
FILE *fp = fopen("/tmp/transformed.gv", "w");
22542254

22552255
fprintf(fp, "%s", buf.data);
22562256
fclose(fp);
@@ -2340,8 +2340,8 @@ printTrgmPackedGraph(TrgmPackedGraph *packedGraph, TRGM *trigrams)
23402340
appendStringInfoString(&buf, "}\n");
23412341

23422342
{
2343-
/* dot -Tpng -o /tmp/packed.png < /tmp/packed.dot */
2344-
FILE *fp = fopen("/tmp/packed.dot", "w");
2343+
/* dot -Tpng -o /tmp/packed.png < /tmp/packed.gv */
2344+
FILE *fp = fopen("/tmp/packed.gv", "w");
23452345

23462346
fprintf(fp, "%s", buf.data);
23472347
fclose(fp);

doc/src/sgml/images/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DOT = dot
1111

1212
all: $(ALL_IMAGES)
1313

14-
%.svg: %.dot
14+
%.svg: %.gv
1515
$(DOT) -T svg -o $@ $<
1616

1717
%.svg: %.txt
File renamed without changes.

0 commit comments

Comments
 (0)