mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix typo in "pg_xlogdump --help" and error message.
Fujii Masao and me.
This commit is contained in:
		@@ -393,7 +393,7 @@ usage(void)
 | 
				
			|||||||
	printf("                         (default: ./pg_xlog)\n");
 | 
						printf("                         (default: ./pg_xlog)\n");
 | 
				
			||||||
	printf("  -r, --rmgr=RMGR        only show records generated by resource manager RMGR\n");
 | 
						printf("  -r, --rmgr=RMGR        only show records generated by resource manager RMGR\n");
 | 
				
			||||||
	printf("                         use --rmgr=list to list valid resource manager names\n");
 | 
						printf("                         use --rmgr=list to list valid resource manager names\n");
 | 
				
			||||||
	printf("  -s, --start=RECPTR     stop reading at log position RECPTR\n");
 | 
						printf("  -s, --start=RECPTR     start reading at log position RECPTR\n");
 | 
				
			||||||
	printf("  -t, --timeline=TLI     timeline from which to read log records\n");
 | 
						printf("  -t, --timeline=TLI     timeline from which to read log records\n");
 | 
				
			||||||
	printf("                         (default: 1 or the value used in STARTSEG)\n");
 | 
						printf("                         (default: 1 or the value used in STARTSEG)\n");
 | 
				
			||||||
	printf("  -x, --xid=XID          only show records with TransactionId XID\n");
 | 
						printf("  -x, --xid=XID          only show records with TransactionId XID\n");
 | 
				
			||||||
@@ -512,7 +512,7 @@ main(int argc, char **argv)
 | 
				
			|||||||
			case 's':
 | 
								case 's':
 | 
				
			||||||
				if (sscanf(optarg, "%X/%X", &xlogid, &xrecoff) != 2)
 | 
									if (sscanf(optarg, "%X/%X", &xlogid, &xrecoff) != 2)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					fprintf(stderr, "%s: could not parse end log position \"%s\"\n",
 | 
										fprintf(stderr, "%s: could not parse start log position \"%s\"\n",
 | 
				
			||||||
							progname, optarg);
 | 
												progname, optarg);
 | 
				
			||||||
					goto bad_argument;
 | 
										goto bad_argument;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user