Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bJ55y-00020z-KL for pgsql-sql@arkaria.postgresql.org; Fri, 01 Jul 2016 20:31:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bJ55y-00040j-6S for pgsql-sql@arkaria.postgresql.org; Fri, 01 Jul 2016 20:31:26 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bJ54y-0000wz-VS for pgsql-sql@postgresql.org; Fri, 01 Jul 2016 20:30:25 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bJ54t-0004Ld-MH for pgsql-sql@postgresql.org; Fri, 01 Jul 2016 20:30:24 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BB4F9203C1; Fri, 1 Jul 2016 16:30:17 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 01 Jul 2016 16:30:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=POVg4kp6dPLh21wqD/JclhOWnoI=; b=QZAaup pYA90b27dHyegCFsTGTq65/CWcEPxBH6ug1itzymK2drFHqitm2TneXrcG3aS3Lk XFo30abV7z9i5FYZfBw3e6k9fG/S4N2YQhYk0+t6Y0lDqajZjkoqo8S5Ud7ay+Z0 24p1nhZ3TaOc5uXRwGHu+V+BFbHwbI472JW30= DKIM-Signature: v=1; a=rsa-sha1; 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-sasl-enc:x-sasl-enc; s=smtpout; bh=POVg4kp6dPLh21w qD/JclhOWnoI=; b=QnC9kRfRwqlfchDHoAXqlpzBULho0TuJzJbjsiS52eqjY30 ifuofQh65ChtpbPkaXc4vy2YA15B3b8W6WZuAJpfgmGLhIanSx6XWACtu0p16Tc4 g27HN5qrOwqIdLDmiFhiPHN1puY7MZ0/j0TOoP0Zj5QxJy0WEyqmgajzHQ2M= X-Sasl-enc: zXax7TeVn/3KCYI7lTbBQDtaGelFu5612Ek8a+eNrXcK 1467405017 Received: from [192.168.1.2] (174-24-160-10.tukw.qwest.net [174.24.160.10]) by mail.messagingengine.com (Postfix) with ESMTPA id A0D19F29F4; Fri, 1 Jul 2016 16:30:16 -0400 (EDT) Subject: Re: missing data for column To: tel medola , pgsql-sql@postgresql.org References: From: Adrian Klaver Message-ID: Date: Fri, 1 Jul 2016 13:30:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 07/01/2016 01:20 PM, tel medola wrote: > Hi. > I tried to import records using the "\copy" or "copy" binary file, but > I'm not getting. > The postgres is prompting me that the column is missing, but it is in > binary file (already opened it to check). > I tried the command "\copy", "copy". I also tried to pass the columns as > a parameter but did not succeed. > > Example below: > COPY queue_log FROM '/Central001/queue_log3.bin'; Have you looked at: https://www.postgresql.org/docs/9.4/static/sql-copy.html Binary Format > > ERROR: missing data for column "callid" > CONTEXT: COPY queue_log, line 1: "PGCOPY" > > Could someone please help me? If the example you show is complete I do see WITH FORMAT binary > > > PS:If there is any way to convert the binary file to text lat would > also, because this way I could import in other ways. Where is the binary file coming from? > > Thank you. -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql