Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zmk75-0007ho-Ld for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Oct 2015 15:06:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zmk75-0001Ag-81 for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Oct 2015 15:06:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zmk5j-0003l5-6Y for pgsql-hackers@postgresql.org; Thu, 15 Oct 2015 15:05:15 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zmk5g-00005u-Dt for pgsql-hackers@postgresql.org; Thu, 15 Oct 2015 15:05:14 +0000 Received: from bart (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPA id 8C68021C3D05 for ; Thu, 15 Oct 2015 18:05:11 +0300 (MSK) Message-ID: <1444921511.3661.13.camel@postgrespro.ru> Subject: Re: Windows service is not starting so =?UTF-8?Q?there=E2=80=99s?= message in log: FATAL: "could not create shared memory segment =?UTF-8?Q?=E2=80=9CGlobal=2FPostgreSQL=2E851401618=E2=80=9D=3A?= Permission =?UTF-8?Q?denied=E2=80=9D?= From: Dmitry Vasilyev To: pgsql-hackers In-Reply-To: <1444920387.3661.7.camel@postgrespro.ru> References: <1444920387.3661.7.camel@postgrespro.ru> Content-Type: multipart/mixed; boundary="=-57qgcHXqTtybjkBCNUHK" Date: Thu, 15 Oct 2015 18:05:11 +0300 Mime-Version: 1.0 X-Mailer: Evolution 3.18.1 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --=-57qgcHXqTtybjkBCNUHK Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit I think that function dsm_impl_windows() with EACCES error should not do ereport() with FATAL level. It works, but it is likely to make an infinite loop if the user will receive EACCES error. On Чт, 2015-10-15 at 17:46 +0300, Dmitry Vasilyev wrote: >  I’ve created 2 unprivileged users: user1 and user2; and registered 2 > services thorough pg_ctl register respectively under these 2 users. > If > first service is running second could not start and vice versa. > > > ---- > Dmitry Vasilyev > Postgres Professional: http://www.postgrespro.com > Russian Postgres Company > > > -- ---- Dmitry Vasilyev Postgres Professional: http://www.postgrespro.com Russian Postgres Company --=-57qgcHXqTtybjkBCNUHK Content-Disposition: attachment; filename="win_dsm.patch" Content-Type: text/x-patch; name="win_dsm.patch"; charset="UTF-8" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9iYWNrZW5kL3N0b3JhZ2UvaXBjL2RzbV9pbXBs LmMgYi9zcmMvYmFja2VuZC9zdG9yYWdlL2lwYy9kc21faW1wbC5jCm5ldyBm aWxlIG1vZGUgMTAwNjQ0CmluZGV4IDkyMWYwMjkuLjQxNzA0OGUKKioqIGEv c3JjL2JhY2tlbmQvc3RvcmFnZS9pcGMvZHNtX2ltcGwuYwotLS0gYi9zcmMv YmFja2VuZC9zdG9yYWdlL2lwYy9kc21faW1wbC5jCioqKioqKioqKioqKioq KiBkc21faW1wbF93aW5kb3dzKGRzbV9vcCBvcCwgZHNtX2hhbmRsZSBoCioq KiA2ODksNjk0ICoqKioKLS0tIDY4OSw2OTYgLS0tLQogIAkJaWYgKCFobWFw KQogIAkJewogIAkJCV9kb3NtYXBlcnIoR2V0TGFzdEVycm9yKCkpOworIAkJ CWlmIChlcnJubyA9PSBFQUNDRVMpCisgCQkJCXJldHVybiBmYWxzZTsKICAJ CQllcmVwb3J0KGVsZXZlbCwKICAJCQkJCShlcnJjb2RlX2Zvcl9keW5hbWlj X3NoYXJlZF9tZW1vcnkoKSwKICAJCQkJICBlcnJtc2coImNvdWxkIG5vdCBj cmVhdGUgc2hhcmVkIG1lbW9yeSBzZWdtZW50IFwiJXNcIjogJW0iLAo= --=-57qgcHXqTtybjkBCNUHK Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --=-57qgcHXqTtybjkBCNUHK--