Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRWs2-0007oB-AE for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Feb 2023 11:19:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pRWs1-0007xL-51 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Feb 2023 11:19:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRW1N-0004CH-Se for pgsql-bugs@lists.postgresql.org; Mon, 13 Feb 2023 10:25:18 +0000 Received: from [61.152.248.190] (helo=mail.esgyn.cn) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRW1F-0000Hb-9h for pgsql-bugs@lists.postgresql.org; Mon, 13 Feb 2023 10:25:16 +0000 Received: from mail.esgyn.cn (mail.esgyn.cn [127.0.0.1]) by mail.esgyn.cn (Postfix) with ESMTP id 5DCC43C1AF465 for ; Mon, 13 Feb 2023 18:24:55 +0800 (CST) Authentication-Results: mail.esgyn.cn (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=esgyn.cn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=esgyn.cn; h= content-transfer-encoding:message-id:user-agent:subject:subject :to:from:from:date:date:content-type:content-type:mime-version; s=dkim; t=1676283885; x=1678875886; bh=aQlFq8yKhzb6BSAUcQ47HaVR u4lDctnryZS8Q0OWL2k=; b=1ypOe4GRYPcrgz6CK3u/ae1Y1Em2XEX+gUOsuWYk A2//0BGe+9yXIljWBBYfDLMD7U+a4/m2/tnUlomqu+VnuVQJszHeMh/frTqxCNJs b4MxjctrWJ2RcpR/zZ53o9To7UOZdQHHfcCoO4IgVVnAoyJyF0FRDI0GZzsUQZ9L PL4= X-Virus-Scanned: amavisd-new at mail.esgyn.cn Received: from mail.esgyn.cn ([127.0.0.1]) by mail.esgyn.cn (mail.esgyn.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id grOE4Jz3H7nf for ; Mon, 13 Feb 2023 18:24:45 +0800 (CST) Received: from localhost (mail.esgyn.cn [127.0.0.1]) (Authenticated sender: xianliang.ji@esgyn.cn) by mail.esgyn.cn (Postfix) with ESMTPSA id 1E3103C11EE0A; Mon, 13 Feb 2023 18:24:45 +0800 (CST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Mon, 13 Feb 2023 18:24:45 +0800 From: xianliang.ji@esgyn.cn To: pgsql-bugs@lists.postgresql.org Cc: Wang Xiao-Zhong , Guo Heng Subject: Optimizer failed to generate plan User-Agent: Roundcube Webmail Message-ID: <3ce0a99e71d27c47a9d5e5589002da8c@esgyn.cn> X-Sender: xianliang.ji@esgyn.cn Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 61.152.248.190 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi PostgreSQL community, Hello guys=EF=BC=8CI am a DBA and found the flowing issue when doing = test on=20 postgresql. is there any plan to fix this issue=EF=BC=9FThanks and feedba= ck are=20 welcome. xianliang.ji Company: esgyn Email: xianliang.ji@esgyn.cn [postgres@mdw postgresql]$ /home/postgres/postgresql/install/bin/psql psql (15.2) Type "help" for help. postgres=3D# select version(); version -------------------------------------------------------------------------= -------------------------------- PostgreSQL 15.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5=20 20150623 (Red Hat 4.8.5-44), 64-bit (1 row) postgres=3D# CREATE TABLE dept( postgres(# deptno int, postgres(# dname VARCHAR(14), postgres(# loc VARCHAR(13) postgres(# ); CREATE TABLE postgres=3D# CREATE TABLE emp( postgres(# empno int, postgres(# ename VARCHAR(10), postgres(# job VARCHAR(9), postgres(# mgr int, postgres(# hiredate DATE, postgres(# sal double precision, postgres(# comm double precision, postgres(# deptno int, postgres(# jobno int postgres(# ); CREATE TABLE postgres=3D# select a.*,b.* from EMP a FULL JOIN DEPT b on=20 a.deptno=3Db.deptno OR upper(ename)=3D'BLAKE' where a.job=3D'MANAGER' OR=20 b.dname=3D'SALES'; ERROR: FULL JOIN is only supported with merge-joinable or hash-joinable=20 join conditions postgres=3D#