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 1j3VP7-0007Iu-Uv for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Feb 2020 01:40:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3VP5-0001Y0-JP for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Feb 2020 01:40:55 +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 1j3VP5-0001Xt-6Q for pgsql-hackers@lists.postgresql.org; Mon, 17 Feb 2020 01:40:55 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j3VP1-0007tr-KR for pgsql-hackers@lists.postgresql.org; Mon, 17 Feb 2020 01:40:54 +0000 Received: by mail-wm1-x343.google.com with SMTP id p17so16674927wma.1 for ; Sun, 16 Feb 2020 17:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=S1HCf3Jo+hSZ86pn9zjFnyNFQM9i/5/VXG8rHsffCCc=; b=Le9BOvEFDqgVkuc1ttOI1360F0FolceKKYeSD5NIbx4mxfhL0D1XP3cZ+dp4nPsFu2 2UAAv8JWpB2iw/q9o/RBGYsq8HW+wUqzVLlRQNjmOMgiNzwwp81AtLrzuuF1KxITh/mJ bQjWm18IDjksdYHqSvf6i5QqD7RJyqzilLdRuY7tp077a+095RjoFf4NY2kDyj65Vfjs yLmijRz4Sk5Xjybf3sCBIn2ThtWvgX2oPqAP0TB3W/vDCOMperjpvci6AlzylBo7E4aI VXST5CyHsmsGwDEWWElGUvPzbmLIPtNRe3/NnO5toODsDiwwOhfNmlIDWgNphWDWFoB0 QGOg== 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; bh=S1HCf3Jo+hSZ86pn9zjFnyNFQM9i/5/VXG8rHsffCCc=; b=FG9b+2J20UWv4/IkiMxKUeIyzPdsZ0ZnrKEfrdQHQBWnthxG2tO6Gtxwd5KKTuflrl 3wqeOoTrPHntICms5/w+XgGEnaMqLonjze3TJVfsyBk4H9FthuV4xpWjuHYELYSFG9tx buKjIsPZXKo+4kP84jqkAc+rX8IM0BdO5kIZ3xUEGRRSWfHI0yBiKc+99DmugSvQZDst iINqvkJ9YNTjOMH4giECH1+TCdEA5P70qMpYiCDYFlK0CANihr005hLBANvHV53xBB10 wMP6sKCCw1dNnI7CrkzuvMnZzs+Ff9wgASYqb2Po7EnFlNn44OFVL9tokpuKdCKpAthW KGsA== X-Gm-Message-State: APjAAAXMyws8TkE/vtxctHES2QA2SrHjNqgZzoco90PSPqIA8u6zVCGE 9hE4aN0mTfm/86fUPgRHSlhj6ZzpSLIu6A== X-Google-Smtp-Source: APXvYqw7Xws+kcXSzyUPbXlEvBYZ/KKSgEu9jM3d0pCMFV/jwFEklm5UcLjeoIVkRlD/tkus8+PUqg== X-Received: by 2002:a7b:c119:: with SMTP id w25mr19324335wmi.112.1581903649495; Sun, 16 Feb 2020 17:40:49 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id 133sm19094918wme.32.2020.02.16.17.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 17:40:48 -0800 (PST) Date: Mon, 17 Feb 2020 02:40:46 +0100 From: Tomas Vondra To: maxzor Cc: pgsql-hackers@lists.postgresql.org, pgsql-general@lists.postgresql.org Subject: Re: 1 Status of vertical clustered index - 2 Join using (fk_constraint) suggestion - 3 Status of pgsql's parser autonomization Message-ID: <20200217014046.mq6b4un3u7wqvbxu@development> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Feb 16, 2020 at 10:38:29PM +0100, maxzor wrote: >Hello, > >1. I was told that M$ SQLServer provides huge performance deltas over >PostgreSQL when dealing with index-unaligned queries : >create index i on t (a,b, c); >select * from t where b=... and c=...; Perhaps index-only scans might help here, but that generally does not work for "SELECT *" queries. >Columnar storage has been tried by various companies, CitusData, >EnterpriseDB, 2ndQuadrant, Fujitsu Enterprise Postgres. It has been >discussed quite a lot, last thread that I was able to find being in >2017, https://www.postgresql.org/message-id/CAJrrPGfaC7WC9NK6PTTy6YN-NN%2BhCy8xOLAh2doYhVg5d6HsAA%40mail.gmail.com >where Fujitsu's patch made it quite far. >What is the status on such a storage manager extension interface ? > I think you're looking for threads about zheap and (especially) zedstore. Those are two "storage manager" implementations various people are currently working on. Neither of those is likely to make it into pg13, though :-( >2. What do you think of adding a new syntax : 'from t join t2 using >(fk_constraint)' ? And further graph algorithms to make automatic >joins ? >Both 'natural join' and 'using (column_name)' are useless when the >columns are not the same in source and destination. >Plus it is often the case that the fk_constraints are over numerous >columns, even though this is usually advised against. But when this >case happens there will be a significant writing speedup. I'm not really sure what's the point / benefit here. Initially it seemed you simply propose a syntax saying "do a join using the columns in the FK constraint" but it's unclear to me how this implies any writing speedup? >I have been bothered by this to the point that I developed a >graphical-query-builder plugin for pgModeler, >https://github.com/maxzor/plugins/tree/master/graphicalquerybuilder#automatic-join-mode >, >but I believe such a syntax would be much better in the core! > Hm, maybe. >3. What is the status of making the internal parser of PostgreSQL less >coupled to the core, and easier to cherry-pick from outside? >It would be great to incorporate it into companion projects : >pgAdmin4, pgModeler, pgFormatter... > I have no idea what you mean by "less coupled" here. What are the requirements / use cases you're thinking about? FWIW I think it's pretty bad idea to post questions about three very different topics into a single pgsql-hackers thread. That'll just lead to a lot of confusion. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services