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.96) (envelope-from ) id 1vr1Zq-0059OH-2W for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 22:23:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vr1Zp-00GUK9-25 for pgsql-general@arkaria.postgresql.org; Fri, 13 Feb 2026 22:23:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vr1Zp-00GUK0-0X for pgsql-general@lists.postgresql.org; Fri, 13 Feb 2026 22:23:53 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vr1Zm-00000000Vzi-36Yv for pgsql-general@postgresql.org; Fri, 13 Feb 2026 22:23:52 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-404263bd58fso2511379fac.1 for ; Fri, 13 Feb 2026 14:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771021430; cv=none; d=google.com; s=arc-20240605; b=FM/kj+4E6Z+krhAED6zM7pLHt9VwF9eX38bf2vMFBatQmWHGZWC9GDHu9Z9zi5gPwx mjTJwh3cXkgZIzWur5tDjZ2xE00bWN+7yYJskLHy1Cqh57/qUlVx1FVkmfeWLF/uOBFB uKJZwCB3cGkUqQBkcNRDeT4FX6FBrQMH+wtxkRwIlTA9iTlGi83/3vYappqiTll6/S98 LUm0zVqwTzAj6G/gy1TAmhmX4jMu4sBjQdN79yYwd2JscjQn6nTvgnThzE/x4VY8+qhE YwENpAQIajGd7DheOVqDD3lAi2T0yJyvrfhL8edGzRLxXKrPMxIpGDYePJqTOsU903NF m5+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/P4YU5AbK3S6+Myh2OsxP7Kt7NuQLvjtfSrnMNnPNJU=; fh=KNSq+t9BltSXFnT3Yof/aKGBtqxeA+bTALiYdvTslaY=; b=KCCHYJSR7JRLhjrcf1K5Itl9mloD5BFnRzlkE1lg3bYymbSI3Hfaw5jqJkTihuRxjZ 9VO8XVG8Y3QQefj14aI8eKpPpYBIF/x71R5g2AruCHL4++9IvgHA4cXXmH5zGYGrK6HI 9ELK4AVDceeJJCNG763uvVlIxQbopwM9R5Clb/ut6DSbb2gRkLBkL3k8k7OBn8cPmFhA RsE0jBwlcMuKZQxim93Qxon1Ztq7DHXz5PPnjf5vDID4TtVExzBtXVazAfl+ZVhlSbBI LP78y4UCehPWeBFGi8IsuW741fwem3QlIspbZgdtj2tqab30TDxw8x1dKWJyQjEP6fif b84g==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771021430; x=1771626230; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=/P4YU5AbK3S6+Myh2OsxP7Kt7NuQLvjtfSrnMNnPNJU=; b=NtVPeSyk2nDIFMYhMwgf/0jyD3Qx99klRk0yH3W8a+0afZYh2DPlnHf18DdxLVn5PJ 11VYDEKN9u7CL3Y+fjsMqPcZsM2IOguTKI2f7XRTRR90EufVIHmog1mbwqutv4ZoBzDv +jJBded0N4ULBDBH0ANQmEp9ArRDTnY9BN6vuYfNA4+k2E+GKxfOAUAoWV1lk79cshCY wTkAocV4wNRbRaBnx5ybete99zUPbqm29xs5A9NUutwM0ApFU+nePGIsqrbUAhIAIeO9 3eVP3yTWTsujkrflv71Gs1lgj6XuJd576bHdYDTOOa0RUHxF5w0inHdBS8oKbHzajKLc RqBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771021430; x=1771626230; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/P4YU5AbK3S6+Myh2OsxP7Kt7NuQLvjtfSrnMNnPNJU=; b=Xpgbai3Amm5kD696WZq1RSlREnKO9nHKIWBaNKllltRZsdG6yQ7Po/k09Qj9cgTMDt QqLYtXDWW4LJhAa8ImKDvVaY/DccvBimNa+ax2Z98zf796l75fGG2iqA7gs4aVXHM0Yk iQL7J1yoSGChULBPXtYQHNVS1/TEV/Tc2k2tKv6naT9Y226yzfdf2u57XtuHni4Bps+T wAGKSagkXwUfogovL+7jh3xUqffCx+myOFVWxcSKKQCgMSbXIESuUPVtzGiwjRh5hCCh iRMbIJa4IEncbHNMyEjyJkLRPRIL4A39oBa85x9owrOdM5Uki2TBhkCe4IYKVjX9WbcB SKuA== X-Gm-Message-State: AOJu0YzSbnwW+BD+J8GjJcQ6Ze9XXgJbW/HjbMTwZSM7j+AdNYa+Z73c MBFDYY4cWSsuluswUjyZQcXgQwACPKXjwl2atyVXQX09mblCpY3dZEQjV83s4Nyx7Chs+VStEfa m+WE4fARGIRhO8pTpf8xHZS3rCp3coX8olQ== X-Gm-Gg: AZuq6aKrbbtFcpRHZ6R83gkkbbtNTO50rJsz3nFmNEk8hmjv6SH8etRbUH+BcEUcADB jzLlquD/PlDLaFDKUYgCAK4Cmmv8Kgx05DMmdFfyMmbOuhYI4pMFDD+83XiIKEU9Ps2F53QWFSQ Xk36Wk9A4fwIbjd2Y8GZnv6Zul0uIWNqPklsOUeU+F3rOMZzPLb5eJAr+b4H/sBcgzJrMddZj7U /IPTfI36b9foYiB8S/X7Kp/a1qVkcIMxMXV6x1w0uhPwlTLJElpVPfvVl/mIxEdnWqwjXnESHCw VZfjWwgh6wIA7E+9oos= X-Received: by 2002:a05:6820:a01:b0:662:bffb:41fc with SMTP id 006d021491bc7-678208a50e4mr704216eaf.15.1771021429866; Fri, 13 Feb 2026 14:23:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Fri, 13 Feb 2026 17:23:38 -0500 X-Gm-Features: AaiRm50ElKAOx-Klbru4BAGh3xq9qLehgeJFiuUYf3Phc4PaD_6UlmJUH4U_meg Message-ID: Subject: Re: Best practice for granting folder read/write permission on Windows To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000003785a8064abc0f55" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003785a8064abc0f55 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 13, 2026 at 4:15=E2=80=AFPM Anthony DeBarros wrote: > Hi, all, > > I don=E2=80=99t use Windows much, but I often help folks who do and are l= earning > 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 =E2=80= =9CUsers=E2=80=9D > to the list of Group or user names solves the issue. I suppose I could fi= nd > the specific name of the PostgreSQL service and add it, but that=E2=80=99= 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. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000003785a8064abc0f55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Feb 13, 2026 at 4:15=E2=80=AFPM A= nthony DeBarros <anthonymd= ebarros@gmail.com> wrote:
Hi, all,

I don=E2=80=99t use Window= s much, but I often help folks who do and are learning SQL by running Postg= reSQL on that OS.=C2=A0

In= order to COPY FROM or TO a folder on, say, the Desktop, the user must firs= t provide permission to PostgreSQL to Read and Write from it. Out of the bo= x, 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 f= ound that navigating to the folder Properties, and then Security, and addin= g =E2=80=9CUsers=E2=80=9D to the list of Group or user names solves the iss= ue. I suppose I could find the specific name of the PostgreSQL service and = add it, but that=E2=80=99s a lot of digging for newbies.
<= /blockquote>

I think the standard solut= ion is to use psql and its \copy meta-command.=C2=A0 Since it runs in the c= lient context, no special permissions are=C2=A0required.

--
Death to <Redacted>, and butt= er sauce.
Don't boil me, I'm still alive.
<Reda= cted> lobster!
--0000000000003785a8064abc0f55--