pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: easteregg@verfriemelt.org, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: plpgsql variable assignment not supporting distinct anymore
Date: Fri, 22 Jan 2021 13:59:50 -0500
Message-ID: <1171052.1611341990@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFj8pRDCz-Pz-oZ1bROJaRNzYA+7=8SN_BBYONaikyCCihZ0pA@mail.gmail.com>
References: <20210122134106.e94c5cd7@mail.verfriemelt.org>
	<CAFj8pRDCz-Pz-oZ1bROJaRNzYA+7=8SN_BBYONaikyCCihZ0pA@mail.gmail.com>

Pavel Stehule <pavel.stehule@gmail.com> writes:
> pá 22. 1. 2021 v 14:41 odesílatel <easteregg@verfriemelt.org> napsal:
>> ERROR:  syntax error at or near "DISTINCT"
>> LINE 8:     _test := DISTINCT a FROM ( VALUES ( (true), ( true ) ) )...

> Using DISTINCT is not a good solution.

Yeah.  It wouldn't be as painful to support this in the grammar
as it would be for UNION et al, so maybe we should just do it.
But I still find this to be mighty ugly plpgsql code.

			regards, tom lane





view thread (7+ messages)

Message-ID: <1171052.1611341990@sss.pgh.pa.us>
Permalink:  ../1171052.1611341990@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1171052.1611341990@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: plpgsql variable assignment not supporting distinct anymore
  In-Reply-To: <1171052.1611341990@sss.pgh.pa.us>

* 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