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 1tsv6k-006lgl-UO for pgsql-general@arkaria.postgresql.org; Fri, 14 Mar 2025 02:49:11 +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 1tsv6j-00CduB-Jf for pgsql-general@arkaria.postgresql.org; Fri, 14 Mar 2025 02:49:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsv6j-00Cdu3-8X for pgsql-general@lists.postgresql.org; Fri, 14 Mar 2025 02:49:09 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tsv6f-002lCE-2v for pgsql-general@lists.postgresql.org; Fri, 14 Mar 2025 02:49:08 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-22423adf751so26434815ad.2 for ; Thu, 13 Mar 2025 19:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741920545; x=1742525345; darn=lists.postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=YwoxYNTRv5ixYvI68kw2ITetluaEHWb5IGqaqvNd5RE=; b=aU9x1N5DUh0UVjKRsUUwAzJU/a1dJa/VGKU76IgBIOEZIiueRI6M+nHaOKEkzjQnBq gWkQ+DYatkI5pTco9wK+IlpQTdbrt8kGl8hixUr9a3l+5ciW9dp9k+jFLq0fzHPCHcZn Wp8iEswmWj31brLVvZmlihta5XzjwS4ctluLQe4oXIHrIUv8631yIUs6wnk/LtBHYNPT JqykQ10XhotX3fS9i1IChqDWHCg41TX8fhOmASHD8L7jABlzKJM0FZWcXZDZ+O4m/SgW W0nsuKjxKxfNdCapU69otFc9ACymfTqGX311M29GgyvsSGjHB3VKEaVv3qgBW9BX2EfW y7fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741920545; x=1742525345; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YwoxYNTRv5ixYvI68kw2ITetluaEHWb5IGqaqvNd5RE=; b=m9nCckYyDPR4AgiYycKKnQqpntLtQ86b+n5yuJ09d77CFGeLbVthKoZ7TVwjTfjjx+ Uk4OKYyi70wpZp6eSblNSRpXcgqdBj0Uhy520y656YUISyAiU2WaM2J/lmHcYlKcpSCM yZHGEJOBQfm7CrNGAsFLSNGEzuaIPwxlXXiEcnIeeudpCAu5cdzJnNCQINmyD4i+Y+CD 7XyV0iH5NQ9JimsQAK94kfHyeHbItBIhvp8Lh32GzIWLfwqex4N5RhANohT20SHdvFAf Z+ybvpSQ889mMkTG+H49w8Fj1EY2jrJxMhxLO6qR1Xb2KaFwrPKvoUbJflAtQNxzBMD6 3oPg== X-Forwarded-Encrypted: i=1; AJvYcCVXs3eBeL8MEltjU4b8SaoMjIxowgonQWdZhhSX2FAUZkTq+Kc7p6vHY/e23hbU9Fh65H3qCJJ3pXGzCFKN@lists.postgresql.org X-Gm-Message-State: AOJu0YweMjt4AADH7I8pFoGg94E8ev8+G1czzFzTUk1+7rsM6xfw7PT/ 4vBIOCxo/Y9kKDyzrWlOLPpISTecaQ3ngQ4YzKwsjQf/PbbD8wfnP5fT7g== X-Gm-Gg: ASbGnct9oB8wJMwN8Q6kt+MTQGCmsBWS/wZvxB0Z76dPzjO/v1hpX8j9uZT5Q43kOPH jAMOX2m090Zx8fURfNdwGaJmcCmIPmI4XO6o1Qql/80ldqXYQhsAkmjKtjxRll3bkKtcGVHgNY7 vrIftzuCP8ysgp2JrIFRLVEwpJiMAGciCQd2aNgo8bCLSfrISZyAiB1n3G+EBVzAaOdi1JXAsry Ka7DzLtgIUjtmO6PGrPGgJvq2AdaAsEaJbiH/YgK5VP81OgD34E/8R0GjCl9ax9wd9GF5xRYcv8 Wmo7tqie8Me8nRB0hGffDFB4YcTWGuJJY1samN8ZJuCIV1vwdaButhjV8wXXQxRik4WhD7Wwvg= = X-Google-Smtp-Source: AGHT+IGD9itW1e8cV15eHMHk94oPkyoLvqDDLHsfvzYFxPH1v5hMr+x5AET2Qjwxja5TsmwgwMjmrA== X-Received: by 2002:a05:6a00:b8a:b0:736:a93d:c9ca with SMTP id d2e1a72fcca58-73722395f3fmr984014b3a.10.1741920545358; Thu, 13 Mar 2025 19:49:05 -0700 (PDT) Received: from smtpclient.apple ([2601:681:4c01:7310:71ef:ffa6:4033:6c24]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af56ea7c87csm1688809a12.57.2025.03.13.19.49.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Mar 2025 19:49:05 -0700 (PDT) From: Rob Sargent Message-Id: <6072813E-9311-41CD-9987-89DD456098AC@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_FFE4C13E-ECE7-4C2F-925A-7E45826EB7C4" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: Re: Query optimization Date: Thu, 13 Mar 2025 20:49:04 -0600 In-Reply-To: Cc: Adrian Klaver , pgsql-general , laurenz.albe@cybertec.at To: Durgamahesh Manne References: <77CFD347-1A36-4A78-8D95-21569977C0A5@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_FFE4C13E-ECE7-4C2F-925A-7E45826EB7C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 13, 2025, at 8:39 PM, Durgamahesh Manne = wrote: >=20 >=20 >=20 > On Fri, 14 Mar, 2025, 08:04 Rob Sargent, > wrote: >=20 > Hi >=20 > Gave you plan with out limit . Stats up to date insert .....on = conflict do nothing runs some times=20 >=20 > Regards=20 > Durga Mahesh >=20 >=20 But still using the =E2=80=9Cselect exists=E2=80=9D, thereby turning the = result into a true/false value? I do not follow your point on the usage = of =E2=80=9Con conflict=E2=80=9D. Is this also something whose = behaviour has changed recently? I assume it references the same table = as the original sql? --Apple-Mail=_FFE4C13E-ECE7-4C2F-925A-7E45826EB7C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Mar 13, 2025, at 8:39 PM, Durgamahesh Manne <maheshpostgres9@gmail.com> wrote:



On Fri, 14 Mar, 2025, 08:04 Rob Sargent, <robjsargent@gmail.com> wrote:
Hi

Gave you plan with out limit . Stats up to date insert = .....on conflict do nothing runs some times 

Regards 
Durga = Mahesh



But still using = the =E2=80=9Cselect exists=E2=80=9D, thereby turning the result into a = true/false value?  I do not follow your point on the usage of =E2=80=9C= on conflict=E2=80=9D.  Is this also something whose behaviour has = changed recently?  I assume it references the same table as the = original sql?

= --Apple-Mail=_FFE4C13E-ECE7-4C2F-925A-7E45826EB7C4--