Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuLqO-0004i1-Gg for pgsql-general@arkaria.postgresql.org; Tue, 29 Dec 2020 20:43:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kuLqN-0005v6-F4 for pgsql-general@arkaria.postgresql.org; Tue, 29 Dec 2020 20:43:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuLqM-0005sK-3i for pgsql-general@lists.postgresql.org; Tue, 29 Dec 2020 20:43:47 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuLqJ-0002eP-JK for pgsql-general@lists.postgresql.org; Tue, 29 Dec 2020 20:43:45 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3F08476F; Tue, 29 Dec 2020 15:43:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 29 Dec 2020 15:43:41 -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=A dkIAE2ZclnsvbjwRDwjlWQJnQ73dlHf6oN37pzHATg=; b=nXDNHnRgWC+qdxQCv V/b2bu5z17BV2ImwdH0l8HHlnLtOL2QgI7b2etvx+iQN/icIPvxL3hfUL7rm0YGb tlcI/QAybpkd+xXX15BAkY63CSiulzmWKeX6JFXAwQlgH8r2fW4BDl68dYGqzikh 6393teDvFzLV3YDlSwzVHv0o567pz8kFJIbK+NGxMbXlngckpRylx2HkR5zMKovc K1C7adtq2UP0lhOmjRkiI4EoaGAuRwXP4Z8e+h88rC/WwmyHjgn480DKL2sMsvxs fo6N/67n+nMoDEKvuVAHo1XKJ4st6rO4fKewhoFPpFlHKxP6oXWxeO1yPjSMELsq 4K8Zg== 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=AdkIAE2ZclnsvbjwRDwjlWQJnQ73dlHf6oN37pzHA Tg=; b=Fs0/bKwzQadxDyufFEG8DMxpJs5BqblzhgynoOkY5x0hKfeevNZO+RjLV lColrluhXjKrzLsNP++j4YzgqTeAegaHX7iB17/AkATURFYtGg0pbWqT6XUTE6zU 2QX939q4VdZjnCSDJyvg1+W/9OsBeLTu0ic7f+VQr59BVWHxRh2OBn3PXVmW/Uhr Q7IgZ8xmBlbf12NRjuxl0AXIR/QemJurVYLSNYA5MR0y2AQwEZDIS7VpM2Hxysb6 xPgu6GyEcvcKwb5OAsmBLo/0bqxfRfVVFkNezmmwTE1br8LZ8yYYvSwLmndQKWpH boj6wthBZAgUtVO729vePi7P7nQ3g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddvuddgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefve efueegffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucfkphepjeeh rddujedvrddugedrudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id 389F1240057; Tue, 29 Dec 2020 15:43:40 -0500 (EST) Subject: Re: copy command - something not found To: susan.hurst@brookhurstdata.com, pgsql-general@lists.postgresql.org References: <97194eb185caab667101ca543b28df00@mail.brookhurstdata.net> <6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net> From: Adrian Klaver Message-ID: <3111aa28-2211-c2ce-8488-7de244d41b27@aklaver.com> Date: Tue, 29 Dec 2020 12:43:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <6d3f9fc655d3fa2a6115df21adfe9a53@mail.brookhurstdata.net> 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/29/20 12:01 PM, Susan Hurst wrote: > Actually, the -c was in an example of a copy command that I found while > working at my last job. I tried executing the command without the -c and > got the same results as before, so I suppose I really don't know what it > means. > > Can you enlighten me? -c is for a command string and if I am following < ${CSVPATH}copycmd.z(tmp) is a redirect of a file. It will help to know what is actually in the file? > > --- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Susan E Hurst > Principal Consultant > Brookhurst Data LLC > Email: susan.hurst@brookhurstdata.com > Mobile: 314-486-3261 > > On 2020-12-29 13:23, David G. Johnston wrote: > >> >> On Tuesday, December 29, 2020, Susan Hurst >> > > wrote: >> >> >> ##-- shell script command >> psql -c < ${CSVPATH}copycmd.z >> >> Given the meaning of ā€œ-cā€ what are you expecting that to do? >> David J. -- Adrian Klaver adrian.klaver@aklaver.com