Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQf9-000000006Zs-1oeo for pgsql-docs@arkaria.postgresql.org; Mon, 09 Nov 2026 14:48:00 +0000 Received: from localhost ([127.0.0.1]:47594 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xQQf8-00000001edK-0Vga for pgsql-docs@arkaria.postgresql.org; Mon, 09 Nov 2026 14:47:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:43742) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQeb-00000001d5R-28Ce for pgsql-docs@lists.postgresql.org; Mon, 09 Nov 2026 14:47:30 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQeZ-000000003du-0X5u for pgsql-docs@postgresql.org; Mon, 09 Nov 2026 14:47:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6A9ElEjF2212232; Mon, 9 Nov 2026 09:47:14 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6A9ElEjF2212232 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1794235634; bh=9KfKEGv3hNm4BOnf9YT1lyFZyPM7AXghoIgx8gQWY4E=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=bnAJAA4RT6m2EYN+KOZNbB/2++kUMyP+//r0Q8vWZhdYZc4wA+aFe6nJt+jOLLxqi 7F0fzvyfbtfhYiHP4OkOdDgb3GZmVP891hCmORrSas0VV2OUs4DT+2C7MfCx2CTq6i WEify7vkDLRp7CTDdKQko6ucxB5P4vThaggZ4M70= From: Tom Lane To: Jc Cipriano cc: pgsql-docs@postgresql.org Subject: Re: Clarification of initdb ownership requirement on Windows In-reply-to: References: Comments: In-reply-to Jc Cipriano message dated "Mon, 09 Nov 2026 10:01:41 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2212230.1794235634.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 09 Nov 2026 09:47:14 -0500 Message-ID: <2212231.1794235634@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jc Cipriano writes: > Could you clarify which interpretation is intended for Windows? > 1. > *Same-account requirement:* The Windows account that executes initdb > must also be the Windows account under which the PostgreSQL server pr= ocess > subsequently runs. > 2. > *Access-based requirement:* The accounts may differ, provided that th= e > Windows account running the PostgreSQL server has the necessary acces= s to > the initialized data directory and related files. I recommend following option 1. Option 2 might accidentally work today, but it doesn't map to what we expect on Unix-oid systems, and nobody here is going to shed a tear if we break it. regards, tom lane