Re: Clarification of initdb ownership requirement on Windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jc Cipriano <carlocipriano20(at)gmail(dot)com>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Clarification of initdb ownership requirement on Windows
Date: 2026-11-09 14:47:14
Message-ID: 2212231.1794235634@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Jc Cipriano <carlocipriano20(at)gmail(dot)com> 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 process
> subsequently runs.
> 2.
> *Access-based requirement:* The accounts may differ, provided that the
> Windows account running the PostgreSQL server has the necessary access 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Karen Jex 2026-11-10 16:30:11 Re: Good beginner doc-hacking task: clear-text vs. cleartext vs. clear text vs. plaintext etc..
Previous Message David G. Johnston 2026-11-09 14:32:50 Re: Clarification of initdb ownership requirement on Windows