pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas 'ads' Scherbaum <ads@pgug.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can we go beyond the standard to make Postgres radically better?
Date: Sat, 12 Feb 2022 01:18:04 +0100
Message-ID: <eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de> (raw)
In-Reply-To: <20220210172229.4it7ioddvrtmws37@hjp.at>
References: <7117322c-185c-4283-990d-6646d8476409@Spark>
	<F04BD036-073C-42AD-B308-43D21C75024B@gmail.com>
	<20220210172229.4it7ioddvrtmws37@hjp.at>

On 10/02/2022 18:22, Peter J. Holzer wrote:
> On 2022-02-09 21:14:39 -0800, Guyren Howe wrote:
>> Postgres has since the outset gone beyond the SQL standard in many ways :
>> types, inheritance, programmability, generality are all well beyond what SQL
>> used to mandate and still well beyond the current standard.
>>
>> There are huge developer benefits available to focusing more on making a great
>> relational programming environment, well outside the SQL standard.
>>
>> Examples of small things Postgres could have:
>>
>>    • SELECT * - b.a_id from a natural join b
>>        □ let me describe a select list by removing fields from a relation. In
>>          the example, I get all fields in the join of  a  and b other than the
>>          shared key, which I only get once.
> Natural join already does this.
>
> My use case for such a feature are tables which contain one column (or a
> small number of columns) which you usually don't want to select: A bytea
> column or a very wide text column. In a program I don't mind (in fact I
> prefer) listing all the columns explicitely, but exploring a database
> interactively with psql typing lots of column names is tedious
> (especially since autocomplete doesn't work here).

Maybe for this specific use case it's easier to teach psql how to do that,
instead of trying to amend the SQL implementation? Example:

SELECT * \- col1 \- col2 FROM table

psql looks up the columns, translates * into the actual list minus these two
columns and lets you continue entering the query.


Regards,

-- 
				Andreas 'ads' Scherbaum
German PostgreSQL User Group
European PostgreSQL User Group - Board of Directors
Volunteer Regional Contact, Germany - PostgreSQL Project



view thread (50+ messages)  latest in thread

Message-ID: <eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de>
Permalink:  ../eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de/
Also on:    postgresql.org/message-id/eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ads@pgug.de
  Subject: Re: Can we go beyond the standard to make Postgres radically better?
  In-Reply-To: <eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de>
  References: <7117322c-185c-4283-990d-6646d8476409@Spark> <F04BD036-073C-42AD-B308-43D21C75024B@gmail.com> <20220210172229.4it7ioddvrtmws37@hjp.at> <eafc22b5-703d-2993-b4bc-4edad404f63f@pgug.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox