pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: aceonline@gmx.de
Subject: BUG #16510: Count Distinct with non distinct column in combination with string constants throws error
Date: Thu, 25 Jun 2020 13:02:22 +0000
Message-ID: <16510-755ed3d371542beb@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16510
Logged by:          Aceonline
Email address:      aceonline@gmx.de
PostgreSQL version: 11.7
Operating system:   Unix (bitnami/postgresql:11.7.0 image)
Description:        

Minimal Reproduction:
CREATE TABLE public.testtable (
column1 int4 NOT NULL,
column2 varchar NULL
);

insert into public.testtable values(1, 'test1');
insert into public.testtable values(2, 'test1');

SELECT
COUNT( DISTINCT (testtable.column2, 'blub') )
FROM
public.testtable;



view thread (4+ messages)  latest in thread

Message-ID: <16510-755ed3d371542beb@postgresql.org>
Permalink:  ../16510-755ed3d371542beb@postgresql.org/
Also on:    postgresql.org/message-id/16510-755ed3d371542beb@postgresql.org

 · 

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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, aceonline@gmx.de
  Subject: Re: BUG #16510: Count Distinct with non distinct column in combination with string constants throws error
  In-Reply-To: <16510-755ed3d371542beb@postgresql.org>

* 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