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 1gV8iG-00088X-2n for pgsql-general@arkaria.postgresql.org; Fri, 07 Dec 2018 05:30:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gV8iE-0000fl-OI for pgsql-general@arkaria.postgresql.org; Fri, 07 Dec 2018 05:30:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gV8iD-0000b8-Lw for pgsql-general@lists.postgresql.org; Fri, 07 Dec 2018 05:30:06 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gV8i9-0004cF-1U for pgsql-general@lists.postgresql.org; Fri, 07 Dec 2018 05:30:05 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 94D75F6B; Fri, 7 Dec 2018 00:29:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 07 Dec 2018 00:29:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=m C7ipm+Ik6ODhnqoP5qu+aE8QCdGvhfmNW02lC0MYBE=; b=NFMZPHFCtWCTCc+Op Q6uaWf8S7z6u4IE6tKwMUkBAlqOUUjyyt0K/SA+ZhlqiNYIvUqNJyj/OjUVxqHP1 8akiW90tBaC1NAEL3RRoCwp+NCpivR8S2zLJPMpxXoMESUEoWNF1gVQedWCd6nPn ifJFYkY+oFtnbbTzT7rhsfftY1RiJ2O0KTqE/LlHcTfkmHq1TXi7fb+jk6mFetyo BBtILtNgKqNTPgwaw1qIzkIwxmmDlVNp9soI0AwaZigDYVud6SOjiWFqEMT9dSI6 2MCDB5c9TirqmCjJq00E1MciTISSR2u72r2TH++DzOAQQzfeiaQ4wa0CxjXMKotx FmQ4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=mC7ipm+Ik6ODhnqoP5qu+aE8QCdGvhfmNW02lC0MY BE=; b=FlDdlzvrvc2S+vK0UJ5kr7ZQIphCsnMR5etd1pMyoPxc+4IQkgIJbpWcL rMImoWsBud3E9dJZbVaccfU3O6Jcb+mEX6Cf8wYRguiAR7pp2mvbVzqe0N/uq/oH SPaeRPmhVRk4d2yKdoYq1zhjo9xlLCqDf6VlnBvzeQR1eKgcVQnoGIAxPS1XJeP3 VVDi2CFNULsxpvxMWlheclK+XA2ccbyTv1pSyLVcGyt5z4m9LZQEbiNhW+cWHZJh J9koAld/E1M42BiyUFGBNcSTbIeHMdPQJPXuJG1Ofbfr8e2nOul60gDeqput7w5w eexBbyYn4+XoIbZjW5fhOwhrTzm0A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudefkedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomh eptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmqeenucffohhmrghinhepshhouhhrtggvfhhorhhgvgdrnhgvthdpuggvfh gruhhlthdrhhhofienucfkphepjedurddvuddvrddufeegrdefnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 4D27E102DD; Fri, 7 Dec 2018 00:29:57 -0500 (EST) Subject: Re: Importing tab delimited text file using phpPgAdmin 5.1 GUI To: s400t@yahoo.co.jp, "pgsql-general@lists.postgresql.org" References: <1892755171.196556.1544154847195.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1892755171.196556.1544154847195.JavaMail.yahoo@mail.yahoo.co.jp> From: Adrian Klaver Message-ID: <1c54581d-541d-10d9-138c-55b87ecded2c@aklaver.com> Date: Thu, 6 Dec 2018 21:29:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1892755171.196556.1544154847195.JavaMail.yahoo@mail.yahoo.co.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/6/18 7:54 PM, s400t@yahoo.co.jp wrote: > Hello Community! > > I am trying to use phpPgAdmin  (ver. 5.1 with PHP 5.6.39, server CentOS > 7, client Win-10 (Japanese)) to import a tab delimited text file (Excel > -> save as tab delimited text;  also used notepad to save the same text > file UTF-8 encoding) . > > Earlier. I had created a table (no columns have double quotes, not mixed > case), for example, like this: > > CREATE TABLE spec ( > rec_id VARCHAR(32)PRIMARY KEY NOT NULL, > title_category VARCHAR(255), > doc_type VARCHAR(255), > etc); > > In my tab delimited text file, first row has column names (without "") > and starting from second row, data, some with double quotes, some with > comma, some with brackets. > > When I uploaded the file for the phpPgAdmin to import, I got the > following error: > > //------------------------------------------------------------------ > ERROR: column "rec_id" of relation "spec" does not exist > LINE 1: INSERT INTO "public"."spec" ("rec_id","title_c... > //------------------------------------------------------------------ > > Why that extra "" in the field name? I don't have it in my text file! Most GUI tools I am familiar with quote identifiers by default. > > How/where can I tell the phpPgAdmin not to add that extra "" around the > field name? I don't know. I have been under the impression that phpPgAdmin was no longer maintained/in use. You might have more luck here: https://sourceforge.net/p/phppgadmin/discussion/115884 > > > Thanks for reading and suggestions. -- Adrian Klaver adrian.klaver@aklaver.com