pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve error reporting when location specified by postgres -D d
3+ messages / 2 participants
[nested] [flat]

* pgsql: Improve error reporting when location specified by postgres -D d
@ 2016-02-03 02:31 Peter Eisentraut <peter_e@gmx.net>
  2016-02-03 04:26 ` Re: pgsql: Improve error reporting when location specified by postgres -D d Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2016-02-03 02:31 UTC (permalink / raw)
  To: pgsql-committers

Improve error reporting when location specified by postgres -D does not exist

Previously, the first error seen would be that postgresql.conf does not
exist.  But for the case where the whole directory does not exist, give
an error message about that, together with a hint for how to create one.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ac7238dc0faccb0ad077aa9922df6e75b0b1bda3

Modified Files
--------------
src/backend/utils/misc/guc.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Improve error reporting when location specified by postgres -D d
  2016-02-03 02:31 pgsql: Improve error reporting when location specified by postgres -D d Peter Eisentraut <peter_e@gmx.net>
@ 2016-02-03 04:26 ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-02-05 01:42   ` Re: pgsql: Improve error reporting when location specified by postgres -D d Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2016-02-03 04:26 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-committers

Peter Eisentraut <peter_e@gmx.net> writes:
> +   if (configdir && stat(configdir, &stat_buf) != 0)
> +   {
> +       write_stderr("%s: could not access \"%s\": %s\n",
> +                    progname,
> +                    configdir,
> +                    strerror(errno));

Perhaps "could not access directory ..."?  This doesn't seem to follow the
message style guideline about specifying what sort of object you're
complaining about.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Improve error reporting when location specified by postgres -D d
  2016-02-03 02:31 pgsql: Improve error reporting when location specified by postgres -D d Peter Eisentraut <peter_e@gmx.net>
  2016-02-03 04:26 ` Re: pgsql: Improve error reporting when location specified by postgres -D d Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-02-05 01:42   ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Peter Eisentraut @ 2016-02-05 01:42 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On 2/2/16 11:26 PM, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
>> +   if (configdir && stat(configdir, &stat_buf) != 0)
>> +   {
>> +       write_stderr("%s: could not access \"%s\": %s\n",
>> +                    progname,
>> +                    configdir,
>> +                    strerror(errno));
> 
> Perhaps "could not access directory ..."?  This doesn't seem to follow the
> message style guideline about specifying what sort of object you're
> complaining about.

Done.

Somehow I was under the mistaken impression that one could also specific
a config file name there.



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2016-02-05 01:42 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 02:31 pgsql: Improve error reporting when location specified by postgres -D d Peter Eisentraut <peter_e@gmx.net>
2016-02-03 04:26 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-02-05 01:42   ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox