pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: maxzor <maxzor@maxzor.eu>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Cc: 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
Date: Mon, 17 Feb 2020 02:56:52 +0100
Message-ID: <8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu> (raw)
In-Reply-To: <20200217014046.mq6b4un3u7wqvbxu@development>
References: <eabf57ee-a115-14f8-2cb9-d98223bd1fe7@maxzor.eu>
	<20200217014046.mq6b4un3u7wqvbxu@development>


> ...
Thank you will look into it!
> 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?
This is exactly what I mean. If you know the fk_constraint (usually 
there are simple patterns) you are all set, or else... you could use a 
function fk(t, t2) to lookup pg_constraint, or even better / more bloat, 
have psql do autocompletion for you? Corner case multiple fks between t 
and t2.
'from t join t2 using(fk(t,t2))'
> I have no idea what you mean by "less coupled" here. What are the
> requirements / use cases you're thinking about?
A lot of external tools do query parsing or validation, I wish they 
could use the official parser as a dependency. AFAIK it is currently not 
the case and everyone is re-implementing its subpar parser.
> 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.

Right... I figured as a newcomer I would not spam the mailing list.
Best regards






view thread (4+ messages)  latest in thread

Message-ID: <8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu>
Permalink:  ../8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu/
Also on:    postgresql.org/message-id/8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu

 · 

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: maxzor@maxzor.eu, tomas.vondra@2ndquadrant.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: 1 Status of vertical clustered index - 2 Join using (fk_constraint) suggestion - 3 Status of pgsql's parser autonomization
  In-Reply-To: <8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu>
  References: <eabf57ee-a115-14f8-2cb9-d98223bd1fe7@maxzor.eu> <20200217014046.mq6b4un3u7wqvbxu@development> <8f242571-20f7-5b9f-d037-dd0d0668a80a@maxzor.eu>

* 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