Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1icT-00031q-0y for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Jan 2014 20:23:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W1icS-0000k8-HB for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Jan 2014 20:23:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1icR-0000k1-Jp for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 20:23:51 +0000 Received: from smtprelay0160.b.hostedemail.com ([64.98.42.160] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1icN-0000Wl-SR for pgsql-bugs@postgresql.org; Fri, 10 Jan 2014 20:23:50 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay04.b.hostedemail.com (Postfix) with ESMTP id 5991B7B61A; Fri, 10 Jan 2014 20:23:46 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::::::::, RULES_HIT:41:355:379:599:967:973:988:989:1260:1277:1311:1312:1313:1314:1345:1359:1437:1515:1516:1518:1519:1534:1541:1593:1594:1595:1596:1711:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4605:4659:5007:6261:7903:9025:9121:10004:10400:10848:11232:11256:11257:11658:11914:12517:12519:12740:13069:13180:13229:13255:13311:13357:13894:13895, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: mint04_3dd960de7f94c X-Filterd-Recvd-Size: 3194 Received: from eldon.alvh.no-ip.org (unknown [190.215.45.233]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf08.b.hostedemail.com (Postfix) with ESMTPA; Fri, 10 Jan 2014 20:23:45 +0000 (UTC) Received: by eldon.alvh.no-ip.org (Postfix, from userid 1000) id 84BE41FC9; Fri, 10 Jan 2014 17:23:43 -0300 (CLST) Date: Fri, 10 Jan 2014 17:23:43 -0300 From: Alvaro Herrera To: Bruce Momjian Cc: Peter Eisentraut , Tom Lane , nicolas@marchildon.net, Bugs for PostgreSQL Subject: Re: BUG #8139: initdb: Misleading error message when current user not in /etc/passwd Message-ID: <20140110202343.GV6840@eldon.alvh.no-ip.org> References: <20130507181904.GA26800@eldon.alvh.no-ip.org> <20131204155257.GD17114@momjian.us> <20131204190338.GP5158@eldon.alvh.no-ip.org> <20131209210532.GA2119@momjian.us> <20131209214539.GL6777@eldon.alvh.no-ip.org> <20131210004734.GE2119@momjian.us> <52B46663.1090202@gmx.net> <20140107044132.GC30539@momjian.us> <20140107214013.GG6840@eldon.alvh.no-ip.org> <20140110195041.GF4873@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140110195041.GF4873@momjian.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Bruce Momjian wrote: > On Tue, Jan 7, 2014 at 06:40:14PM -0300, Alvaro Herrera wrote: > > Bruce Momjian wrote: > > > On Fri, Dec 20, 2013 at 10:46:43AM -0500, Peter Eisentraut wrote: > > > > On 12/9/13, 7:47 PM, Bruce Momjian wrote: > > > > >> Not clear whether the new file should be in src/port or src/common. > > > > > Agreed. It isn't designed to add missing OS functionality, but it is > > > > > mostly OS-specific code. > > > > > > > > It's not for portability, though, is it? > > > > > > Well, neither is sprompt.c, but that has a lot of port-specific code in > > > it, so I used that as a guide. > > > > src/common was created much later than sprompt.c was written. I would > > have thought that the consideration would have been that sprompt.c > > should eventually be moved to src/common; not that it would serve as a > > precedent for anything. > > Are we not moving items over to common where appropriate? I don't think we're moving code from src/port to src/common just for the heck of it; but ISTM if we're adding new code which belongs to src/common, and there's a natural file for it in src/port which should arguably also be in src/common, then it makes sense to put both the new code and the old file together in src/common. Note that nothing in src/port should depend on stuff in src/common. As I see it, src/port is very bare-bones stuff which src/common builds on top of. It might also make sense, in some cases, to consider low-level routines in src/port that are used by higher level routines in src/common. > Are we worried about bring external applications? Please rephrase. What are we worried about? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs