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 1oYYLh-0000RN-3U for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 19:47:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYYLf-0004zd-UV for pgsql-general@arkaria.postgresql.org; Wed, 14 Sep 2022 19:47:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYLf-0004zT-I5 for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 19:47:03 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oYYLZ-0002FX-9n for pgsql-general@lists.postgresql.org; Wed, 14 Sep 2022 19:47:03 +0000 Received: by mail-pf1-x42d.google.com with SMTP id w2so5650288pfb.0 for ; Wed, 14 Sep 2022 12:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=tiIjgvsWBgtHL4KOFr+VMH990omLyL+3Pjkn5izTYVs=; b=oJg04OpfJesJBT7gO5gpvnvvHAr5tdCLxNOLBif11oalR+XoHKmduQnVRQr/SKAEb0 Pqh1e6IQO2L35MhLYIR9uiCbawKkWZzjYVei0CapDtyPPCl5vFvBI9zNQFzvP2iB45tF drEvb6DKEEImm26szavG6rk66i/Hm9yJzxDZRrUfEtz/9m5SjVO8tdx1F5tSnuSJVFsP Rrc/aRw5nGqD24u6k6mJeP0edFCV+56SX6xoTj4p1hySAFo6MpHZgxOSep8PIA1dB+HS Oj1OCB+7maSbM2oO8LEgrvTWCODPqqei4wqMVqfN7IBvn94qF4K95cU9dkcgZ0ILqdyB ieog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=tiIjgvsWBgtHL4KOFr+VMH990omLyL+3Pjkn5izTYVs=; b=rMi8umwBjox9DzreuGhTjG7KfO6EGIXqn38AdnN+sBw07P9/vzpNyOFwqgvI0+cMa4 uj6c+3Pzzbb9ceN+iAK/sbXC9mdcEylTmxIu+0OTEk4amVPcDCXGlmVMUi1OrAvpe95A IX2diWkji2IksvmChO0qzNXlUQy+gB3aRuxXyOdNaRjDwl1Sfp5Oqj58TvDrNfhdiF6I 0gjnDo9r+x1XTMqBmqwTEiPs9pkqRHFisLVpa33v6byjMC53WaFHoe849qqr5RCOI4sC fECn1rOA8dKN/XcZfyT3vAIXTYTClyPX3C4yLeCbaNgiULsXYNyJmkMA7UFXtezJfb3e 3Ljw== X-Gm-Message-State: ACrzQf1EKxDCEsP9PzPiUbnpH3NRRO+Wka5BoPcYMAcJlF/NLL+Wwafv WDpVtvV2D0u5HDFNduZin9TSGKWbSYo= X-Google-Smtp-Source: AMsMyM58jfGN/9HQkVzmXVNupbPeez7wlRaAIVpE2GZStNnhMgah4gYanSoWa5WmYW/6kVBGxXFWIA== X-Received: by 2002:a63:3c2:0:b0:439:8dd3:361b with SMTP id 185-20020a6303c2000000b004398dd3361bmr6544pgd.506.1663184814523; Wed, 14 Sep 2022 12:46:54 -0700 (PDT) Received: from ?IPV6:2601:681:5a00:f790:ffdd:4e7:544:8879? ([2601:681:5a00:f790:ffdd:4e7:544:8879]) by smtp.gmail.com with ESMTPSA id j16-20020a170902da9000b0016dbdf7b97bsm11068373plx.266.2022.09.14.12.46.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Sep 2022 12:46:54 -0700 (PDT) Message-ID: <7b4a6c68-93cc-202a-a87e-a30e6effc80f@gmail.com> Date: Wed, 14 Sep 2022 13:46:52 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: massive update on gin index Content-Language: en-CA To: pgsql-general@lists.postgresql.org References: <3D4F5EA2-3144-4F3B-8FBC-A4FD524B663F@gmail.com> From: Rob Sargent In-Reply-To: <3D4F5EA2-3144-4F3B-8FBC-A4FD524B663F@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/14/22 13:38, Guyren Howe wrote: > You might consider defining a phone type that includes your “type” > information, and just having an array of those, if you really want to > do something like this. > > But a related table instead would be the obvious answer. Did you try a simple array of phone numbers?  If you really care about mobile,work,home prepend the number with one of HMW. Easily stripped off as necessary.  I've had decent performance with arrays in the past.