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 1jS0g6-00065V-LJ for pgsql-general@arkaria.postgresql.org; Fri, 24 Apr 2020 15:55:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jS0g4-0006aj-N9 for pgsql-general@arkaria.postgresql.org; Fri, 24 Apr 2020 15:55:44 +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 1jS0g4-0006Yo-3T for pgsql-general@lists.postgresql.org; Fri, 24 Apr 2020 15:55:44 +0000 Received: from mail-bn7nam10on2061.outbound.protection.outlook.com ([40.107.92.61] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS0g0-0008CF-KD for pgsql-general@postgresql.org; Fri, 24 Apr 2020 15:55:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=APhzAFPb7NWCW7UgLngGjcX6xkWfuU1pdi4qMdJyIkWks7J92TyD6yjGd9U7FQpwanAyOmURWoVYe3kidM5UhiESn0TnBVBCm3ttdhR34s/Fox3zUhGoC5MLI+Wi/E3pmnsZpTcsvWBGJ2CEOZ+1mpf2N+hOO/GhY3dNuCC4iU2BoJD/bAaKLCzZfOWWfBooPrhQ9L4fEfOf2GdPxaQTiymbI5CEoFFgrYPptTe+GSNOXUWRguHUp1HxzUiyV183YpFzdnS9aurFwO3H7SR40QZi6wlwIOHdqS4OD24wYgd1YedVt88FC5kIH+cRNorNV3gDTczIzswHikxXw/Qtzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=syCb+2p9D+xD9nGVl3KbyH4KGjKKj+tVrzZsbB0c40Q=; b=hcJi2Xe1jFn03Hfw9kE+Ms451oGfP117oPs9wa7UYF6tOT6PidOykq7SSuOcBE6s+I7NJjCv0fdL2JnEJoBP2mqDGIlHmQ+KdvhvwTjzq5AZ/pb3u4MRGJ/gvcDunOwoc+FbXBEO1Mt+2IRO2+OB2fMiZ0kLkXIZ1PYTOvFfqQon70+lTSX1X+igU+pC6Gc3JpfmqhGMD6PfFxr3oUZ3AhCSe3SmBUzqzSuckkkKL4mNZTj2sp8yUu+e4eC69xw/gUD2owij0NQgojrICGXDo1ESXBttOMsnToZPqmfNV2fatDjRnJFPzfD0ijoEynskOo5QrdwZplsSTLP5J/XroA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=netwolves.com; dmarc=pass action=none header.from=netwolves.com; dkim=pass header.d=netwolves.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vasotechnology.onmicrosoft.com; s=selector2-vasotechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=syCb+2p9D+xD9nGVl3KbyH4KGjKKj+tVrzZsbB0c40Q=; b=ak9GDIYRI9Xtts5gyr7NDpnch29lPw9Dx/cfRC4fvaNuqhLe/Ub5dqvVQBxT3S/uDU2N5oeu8S1f58s3NgxmHuP4ykSrHzinlfZLsokLclB0WVnX9xW55rKAMR0l+eavnZsM8yqpmW7XPTjgIwkH/HCfzmvIwDoqcmNIZ9NSDeM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=steve.clark@netwolves.com; Received: from DM6PR16MB2971.namprd16.prod.outlook.com (2603:10b6:5:125::32) by DM6PR16MB3340.namprd16.prod.outlook.com (2603:10b6:5:19d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.29; Fri, 24 Apr 2020 15:55:37 +0000 Received: from DM6PR16MB2971.namprd16.prod.outlook.com ([fe80::cd54:4089:55bc:87bd]) by DM6PR16MB2971.namprd16.prod.outlook.com ([fe80::cd54:4089:55bc:87bd%4]) with mapi id 15.20.2921.030; Fri, 24 Apr 2020 15:55:37 +0000 To: pgsql From: Steve Clark Subject: psql \copy Message-ID: Date: Fri, 24 Apr 2020 11:55:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Content-Type: multipart/alternative; boundary="------------C9CAE53D26F238D6D7261222" X-ClientProxiedBy: BL0PR02CA0128.namprd02.prod.outlook.com (2603:10b6:208:35::33) To DM6PR16MB2971.namprd16.prod.outlook.com (2603:10b6:5:125::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sclark66.netwolves.com (173.65.53.194) by BL0PR02CA0128.namprd02.prod.outlook.com (2603:10b6:208:35::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2937.13 via Frontend Transport; Fri, 24 Apr 2020 15:55:36 +0000 X-Originating-IP: [173.65.53.194] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e3b98c3-9729-49ad-030c-08d7e867ee11 X-MS-TrafficTypeDiagnostic: DM6PR16MB3340: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 03838E948C X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR16MB2971.namprd16.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(376002)(39840400004)(396003)(366004)(136003)(346002)(86362001)(44832011)(31686004)(33964004)(81156014)(26005)(316002)(6916009)(8676002)(16526019)(2906002)(7696005)(52116002)(186003)(6486002)(966005)(66946007)(66476007)(2616005)(478600001)(8936002)(31696002)(36756003)(5660300002)(956004)(66556008)(554374003);DIR:OUT;SFP:1101; Received-SPF: None (protection.outlook.com: netwolves.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FerZQdv248frN95qZP6O8xp5d6QDjw6IxpgJfZ02i9VmbD21uqDpUkuS7+E/KsivDAY5e3ru2FmCB53n1txQ7vJMiZrU4XR3svDtgiMDwvt7JCAIKQMzMuo+BkWsFojvr2uojpLbjdHn/GRfaqR4eCtkRKo4zju3e/jMXLF9OWrLjJgLjvowOrbDIoOcWlVjooul1f2YCzVTHw/sInyjTZ1u/0d8B1PmTloOVFeEJ70AkePkfy7Smd0mGZWQpLsiZo5A38CnYPfXNc8RzG5iHg/jJYdK23+9eZAtBpRYVi3nU/O3CA+9alzGNAyhX9jAQDVDa57R2tRBiendgPgtxoee5r6Em/JYTYKxJ1CFQzc5XViGjKzCPFQ0YoRULbLWldb4Rpy6XDpfCN9y/taWLHjVqaUyaNz8HHJUKz76rJY33f0hYPjAk0/wZ+H7uDh+5JLATyc4+7ZdpzcKJ4yVx43MQTfc6aWyRMnsa9Q9Fgwwjv+bZ3AFjaHXpugdg9hm/Rq0W2OVmgIbFpEUSK4ukjqkbPjFXAO8mFk9CBJexKqWX2E4BU8rqyBfFZeAvncsRFDFF0bv+P8UR5+IP+eF6g== X-MS-Exchange-AntiSpam-MessageData: DOI8LfCpTD8NTYMt0VTvsGU6J+EKVe4PeD8lbbewzBEXRiKEginqOJGsIOriOvNSkyFIJRCPN9CXVp9izEa71pe2vY+dNUAQcyTU+COr0H2CmOUs9hPJlDUhI2WiKNRti8dJIV+y2YS4q/KkSlzJUQ== X-OriginatorOrg: netwolves.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e3b98c3-9729-49ad-030c-08d7e867ee11 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2020 15:55:37.0471 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0e6b4e23-9de7-4714-baad-e7fd020c938f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kMRQoQsnJNqytu/OdtJGRE+uZ8J8tWAT4F+AWKQOPlEeMUo+6WH+MIWtj3crldEeXFVbjZo/HvU3+tmiJBLiLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR16MB3340 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --------------C9CAE53D26F238D6D7261222 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Hello, I am using psql to copy data extracted from an InfluxDB in csv format into = postgresql. I have a key field on the time field which I have defined as a bigint since= the time I get from InfluxDB is an epoch time. My question is does psql abort the copy if it hits a duplicate key, or does= it keep processing? Thanks, -- Stephen Clark NetWolves Managed Services, LLC. Sr. Applications Architect Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark@netwolves.com http://www.netwolves.com Email Confidentiality Notice: The information contained in this transmissio= n may contain privileged and confidential and/or protected health informati= on (PHI) and may be subject to protection under the law, including the Heal= th Insurance Portability and Accountability Act of 1996, as amended (HIPAA)= . This transmission is intended for the sole use of the individual or entit= y to whom it is addressed. If you are not the intended recipient, you are n= otified that any use, dissemination, distribution, printing or copying of t= his transmission is strictly prohibited and may subject you to criminal or = civil penalties. If you have received this transmission in error, please co= ntact the sender immediately and delete this email and any attachments from= any computer. Vaso Corporation and its subsidiary companies are not respon= sible for data leaks that result from email messages received that contain = privileged and confidential and/or protected health information (PHI). --------------C9CAE53D26F238D6D7261222 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,

I am using psql to copy data extracted from an InfluxDB in csv format into = postgresql.
I have a key field on the time field which I have defined as a bigint since= the time I get
from InfluxDB is an epoch time.

My question is does psql abort the copy if it hits a duplicate key, or does= it keep processing?


Thanks,
--
Stephen Clark
NetWolves Managed Services, LLC.
Sr. Applications Architect 
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark@netwolves.com
http:/= /www.netwolves.com

Email Confidentiality Notice: The information contained in this transmissio= n may contain privileged and confidential and/or protected health informati= on (PHI) and may be subject to protection under the law, including the Heal= th Insurance Portability and Accountability Act of 1996, as amended (HIPAA). This transmission is intended for the sol= e use of the individual or entity to whom it is addressed. If you are not t= he intended recipient, you are notified that any use, dissemination, distri= bution, printing or copying of this transmission is strictly prohibited and may subject you to criminal or civ= il penalties. If you have received this transmission in error, please conta= ct the sender immediately and delete this email and any attachments from an= y computer. Vaso Corporation and its subsidiary companies are not responsible for data leaks that result fr= om email messages received that contain privileged and confidential and/or = protected health information (PHI). --------------C9CAE53D26F238D6D7261222--