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 1qAc3J-0003Aj-3y for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2023 19:57:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qAc3I-0006Tf-1J for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2023 19:57:40 +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 1qAc3H-0006Rp-NK for pgsql-hackers@lists.postgresql.org; Sat, 17 Jun 2023 19:57:39 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qAc3F-002kyY-2d for pgsql-hackers@lists.postgresql.org; Sat, 17 Jun 2023 19:57:38 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9741caaf9d4so278324266b.0 for ; Sat, 17 Jun 2023 12:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1687031855; x=1689623855; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hs5FNgAYCPxvvHxfNRhW7aWz9U/QdU8CSMViok3Gsno=; b=b7M9ej4qLaDjsarIbJfwcUFz0ZtzoVYQHKXNTM9Qna57oE3dnBklh4662rgTzcg0yi d5cYGMgMfEeuPmJciTb9oUzT397klzzCwN8U8yKfe93tUwUijopiqNkYYCQdhuzlDzr1 LWtHshdStjQDCEC6Pz8IAhIM5AnvAJLzQ69Q5tgboUUWKozCdSxqf8i18Odqavi2h7Oz MLt49z+fSHswKhDYfDvQiUf5W8vVgfuw1+DFBO1JLrEmO/LEfn0/dS2WZL1/EbTz1Zu+ GdyoXG2iQxR92x8Ou4PIkJMNQhl5Bb8ulId7cEKh3bTt0S5PxcLP3nRI65IwfxBp+8We vPPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687031855; x=1689623855; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hs5FNgAYCPxvvHxfNRhW7aWz9U/QdU8CSMViok3Gsno=; b=XcYPW/2FEf1RPCMsdN2rhkacXa4TC5Pv6NWa7ACLRxRm89FrMtbQK/845FSuQtf85Z cahsW4x0Unv1GrCRr0kYdEZcfmBBQn5jn0uUMI9IkEovimpeCl4E/hb4D6j+0swZ1ZRX z4YWDfpVZBuvav3gSLDABNZuamUkxv8LP1xGGLBV07K2J9eZ3gb3p/DtUl8hZUxXRDmV m0NAblqcL2T7cjOa3Z+UEWKp3ui9rYgACDYpgKwz5FruUu2Lh9OVisWQTLkm7wKO18o6 G+RSrToZxyWcEEUwbTrjAvi4tUEZqt2qPxh6kDmsO89T1zUpLPe63TFCQ2ictSZcrF8s Ns7A== X-Gm-Message-State: AC+VfDznzsi5udTzO5yIGIsuhEyN5r/SiOYo9nBnrsKvI1EYcfg/b00G nftCX9SPPdDdS2kUS4+Xz7tQTN84OpQvIEa33Wo= X-Google-Smtp-Source: ACHHUZ7lW7hJyyIP2cBga4sGD8Pmg8CFuvSlAcHp7hlSpHNAYs1m45NGRTiRRS2/9TYZRUcV9J1GDw== X-Received: by 2002:a17:907:3688:b0:96a:2acf:61e1 with SMTP id bi8-20020a170907368800b0096a2acf61e1mr4857055ejc.64.1687031855118; Sat, 17 Jun 2023 12:57:35 -0700 (PDT) Received: from [10.137.0.17] (ip-86-49-228-220.bb.vodafone.cz. [86.49.228.220]) by smtp.gmail.com with ESMTPSA id le10-20020a170907170a00b009865c9e8f47sm2168595ejc.179.2023.06.17.12.57.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jun 2023 12:57:34 -0700 (PDT) Message-ID: <80f51c3c-1c3a-41aa-e5c3-0d07c6c7c217@enterprisedb.com> Date: Sat, 17 Jun 2023 21:57:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH] ltree hash functions Content-Language: en-US To: Tom Lane Cc: Tommy Pavlicek , pgsql-hackers@lists.postgresql.org References: <2602028.1687025982@sss.pgh.pa.us> From: Tomas Vondra In-Reply-To: <2602028.1687025982@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/17/23 20:19, Tom Lane wrote: > Tomas Vondra writes: >> I guess the "correct" solution would be to extend ALTER OPERATOR. I >> wonder why it's not supported - it's clearly an intentional decision >> (per comment in AlterOperator). So what might break if this changes for >> an existing operator? > > This code was added by commit 321eed5f0. The thread leading up to > that commit is here: > > https://www.postgresql.org/message-id/flat/3348985.V7xMLFDaJO%40dinodell > > There are some nontrivial concerns in there about breaking the > semantics of existing exclusion constraints, for instance. I think > we mostly rejected the concern about invalidation of cached plans > as already-covered, but that wasn't the only problem. > > However, I think we could largely ignore the issues if we restricted > ALTER OPERATOR to only add commutator, negator, hashes, or merges > properties to operators that lacked them before --- which'd be the > primary if not only use-case anyway. That direction can't break > anything. > Sound reasonable. Tommy, are you interested in extending ALTER OPERATOR to allow this, which would also allow fixing the ltree operator? regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company