Re: Unique constraint blues

2022-01-18 Thread David G. Johnston
On Tue, Jan 18, 2022 at 10:13 AM Mladen Gogala wrote: > > mgogala=# create unique index test1_uq on test1(col1,coalesce(col2,'*** > EMPTY ***')); > > -> Bitmap Index Scan on test1_uq (cost=0.00..1.70 rows=6 width=0) ... >Index Cond: (test1.col1 = 1) > > How

Unique constraint blues

2022-01-18 Thread Mladen Gogala
Postgres version is 13.5, platform is Oracle Linux 8.5, x86_64. Here is the problem: mgogala=# create table test1(col1 integer,col2 varchar(10)); CREATE TABLE mgogala=# alter table test1 add constraint test1_uq unique(col1,col2); ALTER TABLE mgogala=# insert into test1 values(1,null); INSERT 0

Re: PostgreSQLv14 TPC-H performance GCC vs Clang

2022-01-18 Thread arjun shetty
Hi All, I checked with LLVM/CLang 14.0 on arch x86-64-O3 in the Mac/AMD EPYC environment , but I see GCC performs better than Clang14. Clang14-https://github.com/llvm/llvm-project(main branch and pull or commitID:3f3fe4a5cfa1797..) [image: image.png] pre analysis GCC vs Clang (1) GCC more