Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7mK-00029h-2U for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 14:12:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hH7mI-0001S2-RX for pgsql-general@arkaria.postgresql.org; Thu, 18 Apr 2019 14:12:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7mI-0001Rv-Gl for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 14:12:38 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hH7mG-0003bV-CH for pgsql-general@lists.postgresql.org; Thu, 18 Apr 2019 14:12:38 +0000 Received: by mail-ot1-x341.google.com with SMTP id s24so1786320otk.13 for ; Thu, 18 Apr 2019 07:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=iORq4XBKeiioTUYy2dbLH9BJMrxVGT2U5OcQGd3rSIM=; b=ayJcXWbVSp2JL0ZNHSmL2vBD01mOz+90oypJM1QtLXMO/pXGPKIhk/5lffTaYDxtOJ QJOqInIsf969iNaSaOovR7uW8pdnXMJnvQ6pSFnjHuJYLJ7RrQDyOvIYuNatVjcbR2Wg KiZH8ejb+C7+paqzffCpu+7HsLB7Y9B6gJeDYJxbJHyegoNnteaMPdrIrLOvGYeqpx+k JCs59TgN/fp/r5VH57LHE/uGo048+5F9g7AMf3zKIk3bBqeHSysGt2ILdoAJEPl1/pzO PIZzUtWVj3nm2pQhsC4JDVZipjAz3OzvytKaH7IPdxgfIkJbfkCrJuauUn26ZD+mBZVl mceg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=iORq4XBKeiioTUYy2dbLH9BJMrxVGT2U5OcQGd3rSIM=; b=eiub9qooEcqmQ3Ud8PK+WgauiNMUoxMDa9hgjRlHJUI3BDMKJwBg1eBoFviboj0igP vYYCkt4MjA44MJwR2/4GSmauvKW9Q9Y8KN/0UTmEg2TWui5MIGbuqVpjlxCmJWHY9/kC Ri0GcF5vEnz7txMXRMkE2ArF0Ca2jcY2NopA7huX2dZdkTGBe2Ii6r/D3bn0olaEGXd3 VoIkwqgZkmyYwJrOe88P8XP8EoII51B9IuHvbAy8T5xmUdpxx80sjcOoVUr9wWm30Eob 9lHZrxfvJLPNftW96FLegiPS3BHFfmGhDyQdjuONlI4y0Gn5MmrsHF/r75jbr7ALDEWk LkeA== X-Gm-Message-State: APjAAAV8om9UXDInEpbKkzIJoVpu/tpatC5Dbe63nHn5+xbF7zTbG0tg QY8uIWKRY/r9ndaWdJtZ87o+jVXUSlo= X-Google-Smtp-Source: APXvYqzcAOE89C2o2EpXU43qFY0ohSGQNqdsXXG1j2haY+gNStKxdcvdeFC+17VRPf/DOaPSZszjgw== X-Received: by 2002:a05:6830:2042:: with SMTP id f2mr55285320otp.89.1555596753410; Thu, 18 Apr 2019 07:12:33 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id r133sm943285oib.21.2019.04.18.07.12.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 07:12:32 -0700 (PDT) Subject: Re: Multicolumn index for single-column queries? To: pgsql-general@lists.postgresql.org References: <95ade9a3-6846-3f55-f936-85b8bb4b46a8@mail.ru> <59f265b2-192a-33cd-7b18-d93c068e83e3@gmail.com> <76e2f0b5-d08f-9187-48ed-93bc9a5240e3@archidevsys.co.nz> From: Ron Message-ID: Date: Thu, 18 Apr 2019 09:12:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <76e2f0b5-d08f-9187-48ed-93bc9a5240e3@archidevsys.co.nz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/18/19 8:45 AM, Gavin Flower wrote: > On 19/04/2019 01:24, Ron wrote: >> On 4/18/19 2:14 AM, Andreas Kretschmer wrote: [snip] >> >> (Prefix compression would obviate the need for this question. Then your >> multi-column index would be *much* smaller.) > > True, but a multi column index will still be bigger than single column index. TANSTAAFL. -- Angular momentum makes the world go 'round.