diff options
Diffstat (limited to 'src/bin/pg_dump/pg_backup_custom.c')
| -rw-r--r-- | src/bin/pg_dump/pg_backup_custom.c | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/src/bin/pg_dump/pg_backup_custom.c b/src/bin/pg_dump/pg_backup_custom.c index 8b7ceb64c76..cfe4ebba389 100644 --- a/src/bin/pg_dump/pg_backup_custom.c +++ b/src/bin/pg_dump/pg_backup_custom.c @@ -866,10 +866,15 @@ _ReopenArchive(ArchiveHandle *AH)  	if (AH->mode == archModeWrite)  		die_horribly(AH, modulename, "can only reopen input archives\n"); + +	/* +	 * These two cases are user-facing errors since they represent unsupported +	 * (but not invalid) use-cases.  Word the error messages appropriately. +	 */  	if (AH->fSpec == NULL || strcmp(AH->fSpec, "") == 0) -		die_horribly(AH, modulename, "cannot reopen stdin\n"); +		die_horribly(AH, modulename, "parallel restore from stdin is not supported\n");  	if (!ctx->hasSeek) -		die_horribly(AH, modulename, "cannot reopen non-seekable file\n"); +		die_horribly(AH, modulename, "parallel restore from non-seekable file is not supported\n");  	errno = 0;  	tpos = ftello(AH->FH); | 
