Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXPvt-0001jj-N5 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2019 13:22:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXPvs-0002T0-FJ for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2019 13:22:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXPvs-0002St-0X for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2019 13:22:08 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXPvp-0000nq-Be for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2019 13:22:06 +0000 Received: by mail-wr1-x441.google.com with SMTP id z3so1223238wru.3 for ; Wed, 20 Nov 2019 05:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=DvW5GJHpi+PewhrO+0ujlCNqtdQ8yKWOxc6rj4CGm5E=; b=h2bnCXHOistNBYl2ITbWIYHM16jkucmgyJ46tiZmiBvjTtIciyPiLm7HG0eETVj9Pd HFKOSZ3OOi1KqgRKU/F/vdgdgxKqc1Q2CiYI/jC4XN2FgI5y2fF3pjh0H2jelfx6yL2W YOr9FrAHzzzfpINTAgbh6+O1Q980EfBI2RLHv7Pc1Zb5gW2QS/TtViN23hCBvnZ4FejO gAJISzhdJSq3mnc9iotrAibwiFrcU/8q4u6wwPjM80XzB5Iq8EYeKq+6ysqHEysvrj9e +so0G5YlQqJbakRbqIiEv7BXLviuW5Q5LA4RPULSpQkMa0cx92bwxrvjdtvmloVL9eEy ozWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=DvW5GJHpi+PewhrO+0ujlCNqtdQ8yKWOxc6rj4CGm5E=; b=r5MCmMUu2eoIqS6r1iQZj7wp8mJNWaxR5AdQ0EpCyvkHiZsDlLjD9h+IchduJm4lCZ UVY8ArX8/P3u5Yo4wn4HWtpTWYeM5Ii7UAb99Tl5MydGoLI4pHmwXbxJlZGgH3XL2yfT fq+FxsnmNPV5euOW7BinI5J3ANUsrtZ7p+z0cqe0K0rvgd7UiZMLXw+6Fm60smrrKZRB 8dmgs+9tOLXPxfnFupt4agoNVFWcriIK0tw15r7am+fr5IxfK1St/ZMgH+R2l359qMZt lu0Y3Gm9M7FdyyaikYKDWQp0P/N7sytFeSvGAyLCcyt1lSt5Ob10A6xjTcIcvzlYuJ+l 9NrA== X-Gm-Message-State: APjAAAWVGg/X3Mq9M7raHIuFKqihKQta9QvnAUCTu2+y1QO/vcs7Mk6q sXI8fNeS4nt2sHJUXaLHyqZnQnZZfh0= X-Google-Smtp-Source: APXvYqzSSiLFMiaaeCXPMYNCyaPTiOmG7ECw/V4fv/1hoFdhFbMivbAyi8AQkfS6UJG0rnsHanaMzQ== X-Received: by 2002:a5d:474c:: with SMTP id o12mr1383438wrs.152.1574256123857; Wed, 20 Nov 2019 05:22:03 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id m13sm6879117wmc.41.2019.11.20.05.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 05:22:01 -0800 (PST) Date: Wed, 20 Nov 2019 14:21:59 +0100 From: Tomas Vondra To: leiyanliang@highgo.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16127: PostgreSQL 12.1 on Windows 2008 R2 =?utf-8?Q?copy?= =?utf-8?B?IHRhYmxlIGZyb20g4oCYbGFyZ2UgMkdCIGNzduKAmXJlcG9ydCDigJxVbmtu?= =?utf-8?B?b3duIGVycm9y4oCd?= Message-ID: <20191120132159.7xlgs2sl3ggoeiel@development> References: <16127-cd8faadee42e85d5@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <16127-cd8faadee42e85d5@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Nov 20, 2019 at 12:42:38PM +0000, PG Bug reporting form wrote: >The following bug has been logged on the website: > >Bug reference: 16127 >Logged by: yanliang lei >Email address: leiyanliang@highgo.com >PostgreSQL version: 12.1 >Operating system: Windows 2008 R2 >Description: > >D:\>dir > 驱动器 D 中的卷是 新加卷 > >D:\Program Files\PostgreSQL\12>cd bin > >D:\Program Files\PostgreSQL\12\bin>psql -d postgres -U posgres >用户 posgres 的口令: >psql: 错误: 无法连接到服务器:FATAL: password authentication failed for user "p >osgres" > >D:\Program Files\PostgreSQL\12\bin>psql -d postgres -U postgres >用户 postgres 的口令: >psql (12.1) >输入 "help" 来获取帮助信息. > >postgres=# select version(); > version >------------------------------------------------------------ > PostgreSQL 12.1, compiled by Visual C++ build 1914, 64-bit >(1 行记录) > > >postgres=# CREATE TABLE github_events >postgres-# ( >postgres(# event_id bigint, >postgres(# event_type text, >postgres(# event_public boolean, >postgres(# repo_id bigint, >postgres(# payload jsonb, >postgres(# repo jsonb, >postgres(# user_id bigint, >postgres(# org jsonb, >postgres(# created_at timestamp >postgres(# ); >CREATE TABLE >postgres=# \timing >启用计时功能. >postgres=# set client_encoding='UTF8'; >SET >时间:1.185 ms >postgres=# set lc_messages=en_us; >SET >时间:23.467 ms >postgres=# copy github_events from 'd:\large_events.csv' csv; >ERROR: could not stat file "d:\large_events.csv": Unknown error >----->>>Please note this error!!! This probably means the PostgreSQL user/process does not have access to the file, either because it does not exist, lack of privileges, an AV system blocking the access, or something like that. I suggest you seach in the Windows Event Log, and various other logs you might have there. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services