Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1We8LZ-0006BX-E9 for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Apr 2014 19:33:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1We8LY-00083t-Ut for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Apr 2014 19:33:12 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1We8LX-00083m-Rh for pgsql-bugs@postgresql.org; Sat, 26 Apr 2014 19:33:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1We8LV-0003X0-4H for pgsql-bugs@postgresql.org; Sat, 26 Apr 2014 19:33:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3QJWxBd013384; Sat, 26 Apr 2014 15:32:59 -0400 From: Tom Lane To: =?UTF-8?B?c2RmYXNkZiBhc2RmYXNkZg==?= cc: pgsql-bugs@postgresql.org Subject: Re: =?UTF-8?B?UmVbMl06IFtCVUdTXSBCVUcgIzEwMTQwOiBDb25maWd1cmVkIGZvciAxMjcu?= =?UTF-8?B?MC4wLjEgYnV0IGJpbmRzIHRvIGFsbCBJUA==?= In-reply-to: <1398498604.307715770@f420.i.mail.ru> References: <20140425075608.2714.57886@wrigleys.postgresql.org> <20140425181538.GP2556@tamriel.snowman.net> <1398498604.307715770@f420.i.mail.ru> Comments: In-reply-to =?UTF-8?B?c2RmYXNkZiBhc2RmYXNkZg==?= message dated "Sat, 26 Apr 2014 11:50:04 +0400" Date: Sat, 26 Apr 2014 15:32:59 -0400 Message-ID: <13383.1398540779@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 =?UTF-8?B?c2RmYXNkZiBhc2RmYXNkZg==?= writes: > IT IS A SECURITY (NETWORK) BUG (bind to all ip instead of 127.0.0.1). No, it's pilot error. > 2) In config file i wrote: > listen_addresses = '127.0.0.1' > 3) Then i do init db and run this command: If you did things in that order, it would not have worked anyway, because the config file that the postmaster will use doesn't exist until initdb creates it. However, the real problem appears to be here: > C:\database\PostgreSQL-9.3.4\bin\pg_ctl.exe start -w -D "C:\Postgre" -s -o "-i" The -o "-i" part is passing a -i command line switch to the postmaster, and that sets listen_addresses to "*", overriding whatever might be in the config file. If you'd looked at pg_settings as I advised yesterday, you'd have seen the evidence of this immediately. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs