Re: Initdb failure - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Initdb failure
Date
Msg-id 459e043b-2601-18c4-c11c-f7680f63cd29@2ndquadrant.com
Whole thread Raw
In response to Re: Initdb failure  (Rafia Sabih <rafia.pghackers@gmail.com>)
Responses Re: Initdb failure  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2019-07-25 17:09, Rafia Sabih wrote:
> But on the other hand emitting the right error message atleast would
> be good for the sake of correctness if nothing else. But yes that
> definitely should be weighed against what is the effort required for
> this.

I think if you want to make this more robust, get rid of the fixed-size
array, use dynamic allocation with PQExpBuffer, and let the operating
system complain if it doesn't like the directory name length.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: SegFault on 9.6.14
Next
From: Noah Misch
Date:
Subject: Re: [HACKERS] WAL logging problem in 9.4.3?