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 1t8ydA-00729J-Ui for pgsql-admin@arkaria.postgresql.org; Thu, 07 Nov 2024 09:16: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 1t8yd8-00DtyB-9g for pgsql-admin@arkaria.postgresql.org; Thu, 07 Nov 2024 09:16:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8yd7-00Dty1-V7 for pgsql-admin@lists.postgresql.org; Thu, 07 Nov 2024 09:16:42 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t8yd5-000bqJ-WE for pgsql-admin@lists.postgresql.org; Thu, 07 Nov 2024 09:16:41 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5c94a7239cfso471640a12.3 for ; Thu, 07 Nov 2024 01:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730970997; x=1731575797; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=w6FltsnxwisgbzAAPyLuRi68h0lK7LlLUfQz+PdzWr4=; b=AuRJT3hBbyuy+m4SJBgWDSm7drZdqRUNyYdmGEwBGHKsGNhZtE5rEfpJWd1cLYHFTi nz+LU5Qeep9kpS83O/r2EiJjdMa+F8wF348veY0t73urMzie2H4qLONOoLE3X/OqNzwp CsBjU2vRbWuWFh9U3FxUqpDzfOyZ0Fr1sqwzB36e2luISWBMX6vJed79Wl87fnIdvdE0 vfCHO7jS5C27+xwlf7OR8mRA2BQl/ehKcp3jB4E8yOjUGckG9EUb47quwghpImWb8Y9L 1BGdc6+e37MWxYCMUtUUsbl0tUM8IeKs6HSzH/NNALA600Ue3TQTq01bjnTR9Sci5qvD R3eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730970997; x=1731575797; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w6FltsnxwisgbzAAPyLuRi68h0lK7LlLUfQz+PdzWr4=; b=Bvh5plkZ9PStB4c3o2DcXfcvVCKFOQWirg6FI1OvIQ8Baea/Tz7vIDb8bbY58jglTy 9P3wyj/WL8UN+GIQDjqeI1eKUmWUfGcRW8Rtuvej2kngRXrcCChCzmdQ53akBrpycR76 lR6QsgiQEaS8nq/Sc/XV38raVKLj28vEwfhF7DECXDAjIyki8iEnllQ6J1g18Cv7OXcp MnT7EU8nsw3DlVwHaqpARAif873IZzTL3O6Rlp9TJbk3BSg7Fl9GTuqqjOhCeHykuBcs VLeUo3B4JPo/KjXCqszKxVxdYkxRhMaHKyH5sX9EV6Rdj//y33XSqAv1c7m6MXQMcj6g alkg== X-Gm-Message-State: AOJu0Yz5JZj0YFDPsuUHUt05RnugkVf7vdCD8HhuST1p6OD0OZ1P52di YBFQVysTRsIBMp2hokAledyzMASWcw0Ht/Kh3THa4UAfZjt6kedv/DqiKRpBDCSe4PhOnMNEtBK dg846FTP6HHK2PN3Sr5RvdmUN9+dQBA== X-Google-Smtp-Source: AGHT+IEg5jxvTimSxYrBwfDFjqG1SzIw3T/W5dHSSw1+s3Bx3MV0nyCyi6K8bM5IBtnyrkgrUToeGpSprSR4MaMIeSs= X-Received: by 2002:a05:6402:348c:b0:5ce:fa33:6c9f with SMTP id 4fb4d7f45d1cf-5cefa336d0cmr4817277a12.27.1730970997320; Thu, 07 Nov 2024 01:16:37 -0800 (PST) MIME-Version: 1.0 From: Wasim Devale Date: Thu, 7 Nov 2024 14:46:26 +0530 Message-ID: Subject: ON CONFLICT Clause used on partition tables To: Pgsql-admin , pgsql-admin Content-Type: multipart/alternative; boundary="00000000000069779006264f176c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000069779006264f176c Content-Type: text/plain; charset="UTF-8" Hi All I encountered the insert clause "ON CONFLICT DO update" slowing down the insertion in the partition tables what might be the reason. I used timestamp partion key. I understand the uniqueness can not be maintained across all partions but the partion key must take care of it globally for inserting bulk data from CSV files. Please help on this. Thanks, Wasim --00000000000069779006264f176c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All

I enc= ountered the insert clause "ON CONFLICT DO update" slowing down t= he insertion in the partition tables what might be the reason. I used times= tamp partion key.=C2=A0

= I understand the uniqueness can not be maintained across all partions but t= he partion key must take care of it globally for inserting bulk data from C= SV files.

Please help on= this.

Thanks,
Wasim


=
--00000000000069779006264f176c--