Re: Best practice for granting folder read/write permission on Windows

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Best practice for granting folder read/write permission on Windows
Date: 2026-02-13 22:23:38
Message-ID: CANzqJaB16Uj6F62oJTHG7QXwgr2uN=vnFdr=Kv0k+yUuONn4fA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 13, 2026 at 4:15 PM Anthony DeBarros <anthonymdebarros(at)gmail(dot)com>
wrote:

> Hi, all,
>
> I don’t use Windows much, but I often help folks who do and are learning
> SQL by running PostgreSQL on that OS.
>
> In order to COPY FROM or TO a folder on, say, the Desktop, the user must
> first provide permission to PostgreSQL to Read and Write from it. Out of
> the box, it cannot as it does not have permission.
>
> Do any of you with PostgreSQL and Windows expertise have a suggestion on a
> best practice for this? I have through trial and error found that
> navigating to the folder Properties, and then Security, and adding “Users”
> to the list of Group or user names solves the issue. I suppose I could find
> the specific name of the PostgreSQL service and add it, but that’s a lot of
> digging for newbies.
>

I think the standard solution is to use psql and its \copy meta-command.
Since it runs in the client context, no special permissions are required.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Durgamahesh Manne 2026-02-14 00:24:19 Re: Fillfactor effectiveness on existing table
Previous Message Anthony DeBarros 2026-02-13 21:14:50 Best practice for granting folder read/write permission on Windows