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 1iV3eO-0006RZ-1t for pgsql-general@arkaria.postgresql.org; Thu, 14 Nov 2019 01:10:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iV3eM-0007tc-8q for pgsql-general@arkaria.postgresql.org; Thu, 14 Nov 2019 01:10:18 +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 1iV3eK-0007tV-W9 for pgsql-general@lists.postgresql.org; Thu, 14 Nov 2019 01:10:18 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iV3eH-0004Xa-Fy for pgsql-general@lists.postgresql.org; Thu, 14 Nov 2019 01:10:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B836161E; Wed, 13 Nov 2019 20:10:10 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 13 Nov 2019 20:10:10 -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=L AjiMAc9QkWvgPD5OLxKWly7bovwtfL4leKHcy6F9l0=; b=FZr+Pcq646o6H5a6R k6J43rfybH6p8FiBZ+cclafhrD+IoRVfAzFkO7TD1w3FTlg0TnI5s24MV+vQHBFZ qtGmXxJoeyrCdIVu+dUlpQK8w7LbKeRz+GXsMZgRCsR/cN/cveiQfH0GMn00jdBo 0ravnIrsRHSc6JRDvI1/gNW/HxkEyAahi4vVRQprYgWjk/Evcs0kkGOKd/jou/Nd 4dLMKEA3HYJ3bJ49KBP83h8iOuYzrQps0BOHx3Z19EdpQrUcuH240VHyPzw755KK dsSzNB/xhxmguuiKWulqCq6dykCfPv1Cb0PFYRpo/kKP/MhyhNk1gb1FfgWpPGeu Hl+6A== 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=LAjiMAc9QkWvgPD5OLxKWly7bovwtfL4leKHcy6F9 l0=; b=DjfNF+DiASUpoZ4jcLifpjoynZLzJTkgMxWbWf36NS8Oq+EguIrtD0bd/ UCjGu9KtWU0SDaHsiknAvi01IMYMHNi6HrKn9+RrRJxaPkOqzIuepMp7DPiIUI6f 5niSeEJR7VmQXCEdrpsFZhTw1OYxe32/rfRm8yvLWlCSHknWT+2ao8/gOAMmKFg3 IvyU/JUGgjzUsIYtAXpZrsIqM4PIVOjvZQRUgaknjCpVf0ds70qS4oFyP9eKA20P SzNupQi4e0IJUpiXzn82xfZjsrGQ8UM3YlrWwSJj7Lp59H8QYmeJ3TFeI8M0x1ah 4az8T87H86stTratxkSRd4xCgcjJQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudefvddgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrddugeegrdejheenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.144.75]) by mail.messagingengine.com (Postfix) with ESMTPA id C887A306005F; Wed, 13 Nov 2019 20:10:09 -0500 (EST) Subject: Re: ERROR: COPY escape must be a single one-byte character (multi-delimiter appears to work on Postgres 9.0 but does not on Postgres 9.2) To: Brandon Ragland , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <50bfcbd4-1ff8-cf0a-e389-b165c2027348@aklaver.com> Date: Wed, 13 Nov 2019 17:10:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/13/19 4:40 PM, Brandon Ragland wrote: > Hello, > > I have a Talend enterprise job that loads data into a PostgreSQL > database via the COPY command. When migrating to a new server this > command fails with the following error message: > org.postgresql.util.PSQLException:ERROR: COPY escape must be a single > one-byte character Does the Postgres log offer anymore information? Can you crank up the error level to get more info? Are the encodings for the Postgres server/OS different ? > > The thing is, I looked over the documentation for both Postgres 9.0 and > 9.2. Both documentations say that multi-byte delimiters are not allowed. > So I'm very confused on why this job works perfectly on Postgres 9.0 but > not on 9.2. > > I am unable to edit this Talend job, as it's very old and we do not have > the source code for the job anymore. I am unable to see what the actual > delimiter is. I am also unable to see exactly how the COPY command is > being run, such as whether it's pushing directly to the server via the > Postgres driver, or if it's created a temporary CSV file somewhere and > then loading the data into the server. I believe the reason we have > multi byte delimiters setup is due to the use of various special > characters in a few of the columns for multiple tables. > > I am not aware of any edits to the source code of the old 9.0 Postgres > server. > > The reason we are migrating servers is due to the end of life for CentOS > 5. The new server runs CentOS 7. I believe that both servers are using > the default Postgres versions that come in the default CentOS > repositories. I know for sure that the CentOS 7 server is indeed running > the default Postgres version, as I installed it myself through yum. > > Any help would be greatly appreciated. > > Also, is there a way to copy the old Postgres server, dependencies, and > executables to our new server, in case the source was modified? > > Brandon Ragland > Software Engineer > BREAKFRONT SOFTWARE > Office: 704.688.4085 | Mobile: 240.608.9701 | Fax: 704.973.0607 -- Adrian Klaver adrian.klaver@aklaver.com