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 1kaiwD-0003uT-Au for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Nov 2020 17:20: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 1kaiwC-0002AD-A2 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Nov 2020 17:20:40 +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 1kaiwB-0002A5-VG for pgsql-hackers@lists.postgresql.org; Thu, 05 Nov 2020 17:20:40 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kaiw9-00085b-8x for pgsql-hackers@postgresql.org; Thu, 05 Nov 2020 17:20:39 +0000 Received: by mail-il1-x133.google.com with SMTP id n5so2052976ile.7 for ; Thu, 05 Nov 2020 09:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sJD4ayLoUl53c6SJbegBhNHLv57anGZOvELKaKrFwug=; b=YzYjO1oBGqNzOCGpWF+AfKDOImvbczyK6mow974/+zz/xoQ4xamK3QXsBIwbU/DT/W iUPvsDnT/3uqV0UOXChTqTOrx5I797+0IA/d7u1+W9KKd8GzVz5Idpolg4DusKNDY3h2 rMKKeUgWYBAbvcfKt/auYzgyW7cbItPCLAHUsb9ZxNapG5v0kua7P9Uhp/ZJhsPAcnsL JeKmRSJGA91dN7SKIjcl038lBAjrs2zNhrAt+nMgg+6/3Zc2RYnadwHIN9IwgXg5ye0v 4LyDvznW8k1AFhhgL76gSu7DcnVCXrsMc44Kfxaebr/iFMjh/rCmhRrr9Cl0Y5tyFHfa flCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sJD4ayLoUl53c6SJbegBhNHLv57anGZOvELKaKrFwug=; b=fF75o6XJfLRZDSjX7wjQHOtKTaGlI+9a8rxPT6fPl+qk5E3dDiUFeSlOm+yZYTCbeK 8/cHvijPZcGlAP3b1G9TAsKr2HdWerKWfa1WXY3e+fzViaU9/PA8xOIY1asslBjql5Ze 5pddoY1wOlAapXTXty2FkAHpjDr8/ns5725U5YeaxKfnKIEb8dXIU3TVmvgJHhciPIsY g9lUmXwZZ1AJClbKeIFJV+Yzd9vpGwifExHXN73F8j1OMxGXJCMDO5rzc5Umb8498/MU 53O1Sbloy01ofas4c/h62089CBJIMcf4FKenUXZCuDPSM+v2HUVznZ957OK/4GHScPjl AjiQ== X-Gm-Message-State: AOAM531oHwWFeYmU7K1l0ePM+fGO28us5VAGHZoaFvxIwjJBPCYVZvjN sp71Zd1slR0/z0p+J1DX1k5jqQ== X-Google-Smtp-Source: ABdhPJxgW3bbDwsouozy9t9wTfBKXCMAKJ1lFnZK638Vwr4w3NfSQ1mUQoM80R4DyiXxQrk9T1VC2A== X-Received: by 2002:a92:c530:: with SMTP id m16mr2650221ili.49.1604596833804; Thu, 05 Nov 2020 09:20:33 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id c80sm1678110ill.20.2020.11.05.09.20.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 09:20:32 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id D1EAF8004A5; Thu, 5 Nov 2020 11:20:30 -0600 (CST) Date: Thu, 5 Nov 2020 11:20:30 -0600 From: Justin Pryzby To: Andrey Borodin Cc: Heikki Linnakangas , Tom Lane , Darafei =?utf-8?Q?Kom=D1=8Fpa?= Praliaskouski , Pavel Borisov , Thomas Munro , Michael Paquier , Alexander Korotkov , pgsql-hackers@postgresql.org Subject: Re: Yet another fast GiST build Message-ID: <20201105172030.GE22691@telsasoft.com> References: <4D68C21F-9FB9-41DA-B663-FDFC8D143788@yandex-team.ru> <4098005f-e4b5-5904-4b33-335dd106c132@iki.fi> <3520A18A-5C38-4697-A2E3-F3BDE3496CD5@yandex-team.ru> <6dda35ae-6760-2349-6589-c6bc87d23d1c@iki.fi> <82884CC2-4C32-41A1-A28C-D35964B9AC68@yandex-team.ru> <8da4bfd7-758c-4a20-7760-2841c0725ff8@iki.fi> <9A94BCF4-5AFE-4F20-90C2-347CF7DD30AF@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9A94BCF4-5AFE-4F20-90C2-347CF7DD30AF@yandex-team.ru> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 05, 2020 at 10:11:52PM +0500, Andrey Borodin wrote: > To test that functions are actually called for sorting build we should support directive sorting build like "CREATE INDEX ON A USING GIST(B) WITH(sorting=surely,and fail if not)". Maybe you could add a DEBUG1 message for that, and include that in regression tests, which would then fail if sorting wasn't used. Maybe you'd need to make it consistent by setting GUCs like work_mem / max_parallel_maintenance_workers / ?? Similar to this postgres=# SET client_min_messages =debug; postgres=# CREATE INDEX ON A USING GIST(i) WITH(buffering=off); DEBUG: building index "a_i_idx2" on table "a" serially CREATE INDEX > If we have unconditional sorting build and unconditional buffered build we can check opclasses code better. > The problem is current reloption is called "buffering". It would be strange if we gave this enum possible value like "not buffering, but very much like buffering, just another way". > How do you think, is it ok to add reloption "buffering=sorting" to enhance tests? > > Best regards, Andrey Borodin.