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.94.2) (envelope-from ) id 1sRJRz-00EQtZ-Rg for pgsql-admin@arkaria.postgresql.org; Tue, 09 Jul 2024 22:36:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sRJRx-000MSG-TD for pgsql-admin@arkaria.postgresql.org; Tue, 09 Jul 2024 22:36:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJRw-000MS8-UT for pgsql-admin@lists.postgresql.org; Tue, 09 Jul 2024 22:36:41 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRJRu-001I8S-2c for pgsql-admin@lists.postgresql.org; Tue, 09 Jul 2024 22:36:40 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id 57BB113804C1; Tue, 9 Jul 2024 18:36:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 09 Jul 2024 18:36:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= quadratum-braccas.com; h=cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1720564596; x=1720650996; bh=WqvSeqSKYxql3y9Ee7sZvFtq92UWS7Q/ qBtDVJUT8CA=; b=nakXAkZzNMLxGyJkE5ykeQC5fAXRhg46xpdl7/2r8N8mT7Os 9VdMqEIBespUcARIHIOm8Uvw8cSL5QmMNtezFqbi2HmfwnMrR2v1CgtATt8CuNd+ eeAUlu9avnJqnCFP3m3kJQkOyBevzZtPqBo4hVOS+BlfH4J2JEVKG/uKMrR3h4G4 NlpC4ju5UgJXRIv5YEHkRMtG9AzvP0Mdqvaq+4ikTa8902FZRMrCHPlbOH0vqGyd TXnlcL4kKMHv1Lug4srlpVrm8vczlDaG5E0Klt8x0LSy0pLdYDOsE/dJtmN50Ie1 xyDXR4sm9C82v00Yl2Re+ZHqiuw4WyEVqz2cbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1720564596; x=1720650996; bh=WqvSeqSKYxql3y9Ee7sZvFtq92UW S7Q/qBtDVJUT8CA=; b=mxbAKHHHNIV9bhDtHwdBg/UCHZOpcYyP8TNmkZbxrfKN L4w8znf+8xhqoTBxsfX24HKqccXhKVCyDaiEAmbUdYuvfahVa3g06XInpmtTyMl2 Z0ovjEMD8aSCiwWR9Pyi3w+c3fVqM/snz4nACdqzqwkgmzc2z2W6jkpKWwyr/fwM orv3WbYYW/LmfuLwNZqjJ/MfWKth8ZEsqUy9W4K/28fjFSrR46vKhK0yVey9lE6R EO+NIg8prMiHdzdKsCe7MYn1C7JYvacILZ2S2dJfGnQ279Mk2VuihpCUkPZ872Mt 2lGH1FTullAO1rIv/x4z6rDVzFd/y0KO5Df/pLsyLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfedtgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvffhufgtgfesthekredttd dvjeenucfhrhhomhepufgsohgsuceoshgsohgssehquhgrughrrghtuhhmqdgsrhgrtggt rghsrdgtohhmqeenucggtffrrghtthgvrhhnpeefkeehffdtffeluddugeekvedtkedvje fggeehfeetfeduieevkefhleffhfeuhfenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehssghosgesqhhurggurhgrthhumhdqsghrrggttggrsh drtghomh X-ME-Proxy: Feedback-ID: i374947ac:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Jul 2024 18:36:34 -0400 (EDT) Message-ID: <85b3aab6-91ef-496e-88d5-047f170e1a06@quadratum-braccas.com> Date: Tue, 9 Jul 2024 16:36:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "pgsql-admin@lists.postgresql.org" Content-Language: en-US From: Sbob Subject: OT: help with pgloader Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk All; I created a few tables with pgbench, then I did this: 1)  copied the data from pgbench_accounts to a data file with a pipe '|' delimiter:  copy pgbench_accounts to '/var/lib/pgsql/copy/pgbench_accounts.dat' delimiter ' ; 2) installed pgloader # dnf -y install pgloader 3) deleted all data from the pgbench_accounts table: DELETE FROM pgbench_accounts ; 4) created a copy.load file that looks like this: $ cat copy.load LOAD COPY  FROM copy://./pgbench_accounts3.dat  INTO postgresql://localhost/postgres TARGET TABLE public.pgbench_accounts  WITH delimiter '|' However pgloader bombs on the delimiter (see below) Can someone point me in the right direction ? Thanks in advance pgloader run: $ pgloader copy.load 2024-07-09T23:26:21.005000+01:00 LOG pgloader version "3.6.7~devel" 2024-07-09T23:26:21.006000+01:00 LOG Data errors in '/tmp/pgloader/' 2024-07-09T23:26:21.006000+01:00 LOG Parsing commands from file #P"/var/lib/pgsql/copy/copy.load" KABOOM! ESRAP-PARSE-ERROR: At   TARGET TABLE public.pgbench_accounts    WITH delimiter '|'                      ^ (Line 5, Column 19, Position 141) In context COMMAND: While parsing COMMAND. Expected:      the character Tab   or the character Newline   or the character Return   or the character Space   or the character , (COMMA)   or the string "--"   or the string "/*"   or the character ; (SEMICOLON)   or the string "after"   or the string "before"   or the string "set"   or the string "with" An unhandled error condition has been signalled: At   TARGET TABLE public.pgbench_accounts    WITH delimiter '|'                      ^ (Line 5, Column 19, Position 141) In context COMMAND: While parsing COMMAND. Expected:      the character Tab   or the character Newline   or the character Return   or the character Space   or the character , (COMMA)   or the string "--"   or the string "/*"   or the character ; (SEMICOLON)   or the string "after"   or the string "before"   or the string "set"   or the string "with" What I am doing here? At   TARGET TABLE public.pgbench_accounts    WITH delimiter '|'                      ^ (Line 5, Column 19, Position 141) In context COMMAND: While parsing COMMAND. Expected:      the character Tab   or the character Newline   or the character Return   or the character Space   or the character , (COMMA)   or the string "--"   or the string "/*"   or the character ; (SEMICOLON)   or the string "after"   or the string "before"   or the string "set"   or the string "with"