Content-Length: 277435 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4ba96d1b82d694fead0ac709f9429cbb7ea89cb0

12 Improve format of code and some error messages in pg_checksums · postgrespro/postgres_cluster@4ba96d1 · GitHub
Skip to content

Commit 4ba96d1

Browse files
committed
Improve format of code and some error messages in pg_checksums
This makes the code more consistent with the surroundings. Author: Fabrízio de Royes Mello Discussion: https://postgr.es/m/CAFcNs+pXb_35r5feMU3-dWsWxXU=Yjq+spUsthFyGFbT0QcaKg@mail.gmail.com
1 parent fb50d3f commit 4ba96d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bin/pg_checksums/pg_checksums.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,18 @@ main(int argc, char *argv[])
435435
fprintf(stderr, _("%s: data checksums are not enabled in cluster\n"), progname);
436436
exit(1);
437437
}
438+
438439
if (ControlFile->data_checksum_version == 0 &&
439440
mode == PG_MODE_DISABLE)
440441
{
441-
fprintf(stderr, _("%s: data checksums are already disabled in cluster.\n"), progname);
442+
fprintf(stderr, _("%s: data checksums are already disabled in cluster\n"), progname);
442443
exit(1);
443444
}
445+
444446
if (ControlFile->data_checksum_version > 0 &&
445447
mode == PG_MODE_ENABLE)
446448
{
447-
fprintf(stderr, _("%s: data checksums are already enabled in cluster.\n"), progname);
449+
fprintf(stderr, _("%s: data checksums are already enabled in cluster\n"), progname);
448450
exit(1);
449451
}
450452

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_cluster/commit/4ba96d1b82d694fead0ac709f9429cbb7ea89cb0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy