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 1pqagw-0003Pf-Ks for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2023 14:27:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pqagv-0002U0-9O for pgsql-hackers@arkaria.postgresql.org; Sun, 23 Apr 2023 14:27:49 +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 1pqExl-0005Zk-BY for pgsql-hackers@lists.postgresql.org; Sat, 22 Apr 2023 15:15:45 +0000 Received: from 13.mo583.mail-out.ovh.net ([87.98.182.191]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pqExe-004Rt8-Pz for pgsql-hackers@postgresql.org; Sat, 22 Apr 2023 15:15:44 +0000 Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.20.202]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 5C3E5263D8 for ; Sat, 22 Apr 2023 15:15:37 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-jv2tx (unknown [10.110.171.120]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id B73751FDC1 for ; Sat, 22 Apr 2023 15:15:36 +0000 (UTC) Received: from jotel.com.pl ([37.59.142.99]) by ghost-submission-6684bf9d7b-jv2tx with ESMTPSA id 6VYIBhj6Q2SjSwAAVX/oiw (envelope-from ) for ; Sat, 22 Apr 2023 15:15:36 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-99G003e3bd2355-0866-4de8-aec4-054d4eae6098, 195D7722AB6FFE3ED5B82FC6FE24A4DF987E12E1) smtp.auth=marek.mosiewicz@jotel.com.pl X-OVh-ClientIp:178.43.142.235 Message-ID: <37814c0413f9d36338cca990a90180eba47f74c1.camel@jotel.com.pl> Subject: Index merge join From: Marek Mosiewicz To: pgsql-hackers@postgresql.org Date: Sat, 22 Apr 2023 17:15:35 +0200 Content-Type: multipart/alternative; boundary="=-LeZ2l9tPhhR2d80CezUF" User-Agent: Evolution 3.48.0 (3.48.0-1.fc38) MIME-Version: 1.0 X-Ovh-Tracer-Id: 18021435385304244320 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfedtiedgkeehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefkuffhvffftggfggesrgdtreertderjeenucfhrhhomhepofgrrhgvkhcuofhoshhivgifihgtiicuoehmrghrvghkrdhmohhsihgvfihitgiisehjohhtvghlrdgtohhmrdhplheqnecuggftrfgrthhtvghrnhepkeefjeettddvkeeljeduudevheduveehtdetjeelueejteelleekvedvteevhfdunecukfhppeduvdejrddtrddtrddupddujeekrdegfedrudegvddrvdefhedpfeejrdehledrudegvddrleelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeomhgrrhgvkhdrmhhoshhivgifihgtiiesjhhothgvlhdrtghomhdrphhlqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-LeZ2l9tPhhR2d80CezUF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Best way to restrict query on many columns is to have index on these columns. BUT with faster and faster IOPS is it not already feasable to make merge join on indexes ? Then it could be possible to have just index on single columns for more rare queries. Index which have column and oid/primary key. Then make merge join on all columns restreicted/sorted. Same for full text search (word,relevance,id) Best regards, =C2=A0 =C2=A0Maek Mosiewicz --=-LeZ2l9tPhhR2d80CezUF Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi,

Best way to rest= rict query on many columns is to have index on these columns.
BUT= with faster and faster IOPS is it not already feasable to make merge
=
join on indexes ? Then it could be possible to have just index on sing= le columns
for more rare queries. Index which have column and oid= /primary key.
Then make merge join on all columns restreicted/sor= ted.
Same for full text search (word,relevance,id)

=
Best regards,
   Maek Mosiewicz
--=-LeZ2l9tPhhR2d80CezUF--