Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WuinQ-0003UZ-JP for pgsql-sql@arkaria.postgresql.org; Wed, 11 Jun 2014 13:42:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WuinQ-0004IJ-2e for pgsql-sql@arkaria.postgresql.org; Wed, 11 Jun 2014 13:42:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WuinP-0004Fx-63 for pgsql-sql@postgresql.org; Wed, 11 Jun 2014 13:42:31 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WuinL-0006sq-Jd for pgsql-sql@postgresql.org; Wed, 11 Jun 2014 13:42:29 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WuinL-0002tI-0l for pgsql-sql@postgresql.org; Wed, 11 Jun 2014 06:42:27 -0700 Date: Wed, 11 Jun 2014 06:42:27 -0700 (PDT) From: David G Johnston To: pgsql-sql@postgresql.org Message-ID: <1402494147017-5806828.post@n5.nabble.com> In-Reply-To: <1402480834884-5806798.post@n5.nabble.com> References: <1402480834884-5806798.post@n5.nabble.com> Subject: Re: need to pass the csv file name as value to the column file_id MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 3.5 (+++) 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 kranthi wrote > FROM 's3://testing/game-raw/2014060923.csv' Also, PostgreSQL will be unable to resolve a URL, especially one specifying the "s3" protocol. Perhaps you are using Amazon RedShift and they have customized their source to enhance the COPY command? You particular problem is core PostgreSQL and has the same answer - somehow you have to make the name of the file part of the file content seen by the COPY command. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/need-to-pass-the-csv-file-name-as-value-to-the-column-file-id-tp5806798p5806828.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql