Re: pg_restore error message - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: pg_restore error message
Date
Msg-id CAEudQApAWpJscpdfr=D6M6217iTxnuyKFoHK7gKHQMJKYwwVWg@mail.gmail.com
Whole thread Raw
In response to pg_restore error message  (Euler Taveira <euler.taveira@2ndquadrant.com>)
Responses Re: pg_restore error message
List pgsql-hackers
Em qui., 7 de mai. de 2020 às 18:54, Euler Taveira <euler.taveira@2ndquadrant.com> escreveu:
Hi,

While investigating a pg_restore error, I stumbled upon a message that is not so useful.

pg_restore: error: could not close data file: No such file or directory

Which file? File name should be printed too like in the error check for cfopen_read a few lines above.
Can suggest improvements?

1. free (398 line) must be pg_free(buf)';
2. %m, is a format to parameter, right?
    But what parameter? Both fatal call, do not pass this parameter, or is it implied?

regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Euler Taveira
Date:
Subject: pg_restore error message
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: Incremental sorts and EXEC_FLAG_REWIND