Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zuou6-0002CM-TN for pgsql-sql@arkaria.postgresql.org; Fri, 06 Nov 2015 21:50:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zuou6-0000tS-Fl for pgsql-sql@arkaria.postgresql.org; Fri, 06 Nov 2015 21:50:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZunWy-00043g-3C for pgsql-sql@postgresql.org; Fri, 06 Nov 2015 20:22:40 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZunWv-0007T0-92 for pgsql-sql@postgresql.org; Fri, 06 Nov 2015 20:22:38 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 1CA6A1979470 for ; Fri, 6 Nov 2015 12:11:39 -0800 (PST) Date: Fri, 6 Nov 2015 13:22:36 -0700 (MST) From: masyaf To: pgsql-sql@postgresql.org Message-ID: <1446841356122-5873015.post@n5.nabble.com> Subject: query option in COPY postgres MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 According to COPY documentation , I can use query option when exporting data. Can I use query VALUES when loading data into tables from txt file? If I have 2 columns and I want to insert record manually in the first column(SentenceID) and insert data in the second column(Sentence) from text file. Is it something like: copy foo1(Sentence) | (VALUES (2339)) from '/path/to/sentence.txt' with delimiter '*'; How to use exactly options in COPY command, it has {} | [] symbols in documentation. -- View this message in context: http://postgresql.nabble.com/query-option-in-COPY-postgres-tp5873015.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