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 1nJBSI-00030Z-GU for pgsql-general@arkaria.postgresql.org; Sun, 13 Feb 2022 09:46:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nJBSG-0002eD-5d for pgsql-general@arkaria.postgresql.org; Sun, 13 Feb 2022 09:46:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJBSF-0002e3-Pp for pgsql-general@lists.postgresql.org; Sun, 13 Feb 2022 09:46:03 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nJBS8-00017G-Tn for pgsql-general@lists.postgresql.org; Sun, 13 Feb 2022 09:46:02 +0000 Received: by mail-pf1-x431.google.com with SMTP id p10so3489002pfo.12 for ; Sun, 13 Feb 2022 01:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=bpzIoPIm9HAn3G8p7nud7vZjnBOiAJ8+E8IpfTJuncc=; b=Kb5+SboC4f9Vy/w7uwfT+xKsOQCCY0gL3q38c/qAEY44RrlLN6LNGGmiSrdAkhE49Z kzeJj9ySdlWY8V7C3Sf5zzhcaRr7K1U7jAByJs2pMxV+fh3z7J4+ey+yQ9PA6xCdR4MW wGIL5Dyi0Wtl08flmAlo4AzqvywyPqlpMK7cDatFZXmONC3dgPeMZp/XFQCoOp2jG6RJ GuMpuBCWrYCda93pk4Qzkx5jhd3IzM5xGtPz1pwC3vA2dCLKk/Rz61707079af+qM6aZ /rIhp5i7QHgueXk+SXsMLq63xY0d86+aN780ReV4Zu4SqF+bqXTvQ4aaUx2mpjvHUnjp IneA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=bpzIoPIm9HAn3G8p7nud7vZjnBOiAJ8+E8IpfTJuncc=; b=7pBNnGU0gmR4UAI9NQd2LUOfcavRG2TGIEtk9qX0FKobDajbjFIqws6maZ8vwhgX5Y QU4E0uvolZ1AePt8/qnRBMDVCtTWhoOQ2F4NMmyA46TQA5xjXF6yheIfDz7OVC2oiX/S K1Wfw4gYEfIZ5QMgflTrafrHd0iYyndN6ajS+BQ546BVFkEemse6yYH7eSf3iXjPiT/h KYx6Gauy04iKBR5xrRH8bevCOYdUQiq+lRWVdfDu5PQLXd2iPVGdC0oI7/a4srCgmdpK cESU2XyvLohRqpNuYcBxh7yb1FEHuO647nYaSDG368Qb/k4eSEYXrhIwl37QO6rzrhb1 T0YA== X-Gm-Message-State: AOAM5330hNQ+xrVw1R526zgudDupUp19dljNdlojwbB3nJ2LkHObX3hC jQl2+RQIwtW5iaEC25WZhk54Qs3l8TjaOQ== X-Google-Smtp-Source: ABdhPJxRreakgX+waQ1l0xybDxxDe+vHTym366itC+gd3vDCsrSbCJpY86W5VwQ3nZRE5H3E2v0kLQ== X-Received: by 2002:a05:6a00:179d:: with SMTP id s29mr9337705pfg.16.1644745554655; Sun, 13 Feb 2022 01:45:54 -0800 (PST) Received: from [2600:8801:8800:2:100::] ([2600:8801:8800:2::13]) by smtp.gmail.com with ESMTPSA id g5sm32531035pfv.22.2022.02.13.01.45.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Feb 2022 01:45:54 -0800 (PST) Date: Sun, 13 Feb 2022 01:45:48 -0800 From: Guyren Howe To: pgsql-general , Pavel Stehule Message-ID: In-Reply-To: References: <7117322c-185c-4283-990d-6646d8476409@Spark> <20220210172229.4it7ioddvrtmws37@hjp.at> <20220212195057.amvpuhytkkcndyhh@hjp.at> <20220212213453.tordj3445pgyxonq@hjp.at> <3a50f4fb-3b62-cd5c-a60c-a7211c7f7a5e@pgug.de> <20220213082914.zet7f5ojb4z2laov@hjp.at> Subject: Re: Can we go beyond the standard to make Postgres radically better? X-Readdle-Message-ID: b1ccc12b-0b73-4017-aa3e-3b2854342105@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6208d350_3352255a_18c4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --6208d350_3352255a_18c4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > The MySQL autocomplete is designed without context filtering. Maybe w= e can have this implementation too (as alternative) > > > > so using all column names=C2=A0+ all table names=C2=A0+ aliases.colum= n names (when we know defined alias) > > > > Another idea about column excluding. Any implementation on the client= side is very complex, because you need to parse sql. But maybe we can en= hance SQL with some syntax. > > > > SELECT ... and LAST optional clause can be HIDE, OR EXCLUDE NAME or E= XCLUDE TYPE > > > > SELECT * =46ROM postgistab HIDE TYPE LIKE 'wkb%' > > SELECT * =46ROM postgistab ORDER BY ... EXCLUDE COLUMN LIKE 'shape%' > > > > WITH x AS (SELECT * =46ROM xx) > > SELECT * =46ROM x EXCLUDE COLUMN x1,x2 > > > > The column excluding should be separate *last* clase. > > > > More with this syntax is less possibility of collision with ANSI SQL Not against this. Seems somewhere in here might be a nice quality of life= change. Still. I originally suggested that SQL is terrible and we should fearlessly eith= er replace it or migrate it toward something better. And the thread winds= up with a debate about a minor change to a development tool. I=E2=80=99m back to just having no earthly idea why anyone who finds rela= tions to be a productive tool for building a model would think that SQL b= eing the only means to do that is Okay. SMH. --6208d350_3352255a_18c4 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

The MySQL autocomplete is designed without context filtering. Maybe we c= an have this implementation too (as alternative)

so using all column names&=23160;+ all table names&=23160;+ aliases.colum= n names (when we know defined alias)

Another idea about column excluding. Any implementation on the client sid= e is very complex, because you need to parse sql. But maybe we can enhanc= e SQL with some syntax.

SELECT ... and LAST optional clause can be HIDE, OR EXCLUDE NAME or EXCLU= DE TYPE

SELECT * =46ROM postgistab HIDE TYPE LIKE 'wkb%'
SELECT * =46ROM postgistab ORDER BY ... EXCLUDE COLUMN LIKE 'shape%'

WITH x AS (SELECT * =46ROM xx)
SELECT * =46ROM x EXCLUDE COLUMN x1,x2

The column excluding should be separate *last* clase.

More with this syntax is less possibility of collision with ANSI SQL
Not against this. Seems somewhere in here might be = a nice quality of life change.

Still.

I originally suggested that SQL is terrible and we should fearlessly eith= er replace it or migrate it toward something better. And the thread winds= up with a debate about a minor change to a development tool.

I=E2=80=99m back to just having no earthly idea why anyone who finds rela= tions to be a productive tool for building a model would think that SQL b= eing the only means to do that is Okay.

SMH.
--6208d350_3352255a_18c4--