pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Marc Millas <marc.millas@mokadb.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: syntax pb
Date: Tue, 30 May 2023 17:57:59 +0200
Message-ID: <ZHYdB2bsrd9kL2d+@depesz.com> (raw)
In-Reply-To: <CADX_1aZaUNLBjfkVAA02rkx8vJWUrVORXS38Ubj4+8T6G5r5Bw@mail.gmail.com>
References: <CADX_1aZ5gMfoR+D7LpsQ2jq7N1AFcpVCh6TP1N0deZdqNaPPrg@mail.gmail.com>
	<02bd7734-9e59-8bbf-f39b-e0bc484c3912@aklaver.com>
	<e891c59a-cf22-4b8b-6de0-da3614483808@aklaver.com>
	<CADX_1aZaUNLBjfkVAA02rkx8vJWUrVORXS38Ubj4+8T6G5r5Bw@mail.gmail.com>

On Tue, May 30, 2023 at 05:53:30PM +0200, Marc Millas wrote:
> Thanks Adrian, but if the query becomes more complex, for example with a
> few joins more, then even casting doesn't work.
> This comes from a prod environment and even casting NULLs (which is more
> than strange, BTW) generates absurd errors.
> Too my understanding it looks like the parser did not parse the select
> distinct as we think he does.

Show *real* example that doesn't work, with schema. Clearly your example
can be easily made to work.

Best regards,

depesz






view thread (14+ messages)  latest in thread

Message-ID: <ZHYdB2bsrd9kL2d+@depesz.com>
Permalink:  ../ZHYdB2bsrd9kL2d+@depesz.com/
Also on:    postgresql.org/message-id/ZHYdB2bsrd9kL2d+@depesz.com

 · 

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: depesz@depesz.com, marc.millas@mokadb.com, adrian.klaver@aklaver.com
  Subject: Re: syntax pb
  In-Reply-To: <ZHYdB2bsrd9kL2d+@depesz.com>
  References: <CADX_1aZ5gMfoR+D7LpsQ2jq7N1AFcpVCh6TP1N0deZdqNaPPrg@mail.gmail.com> <02bd7734-9e59-8bbf-f39b-e0bc484c3912@aklaver.com> <e891c59a-cf22-4b8b-6de0-da3614483808@aklaver.com> <CADX_1aZaUNLBjfkVAA02rkx8vJWUrVORXS38Ubj4+8T6G5r5Bw@mail.gmail.com> <ZHYdB2bsrd9kL2d+@depesz.com>

* 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