Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpAAd-005Nmt-SC for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 17:01:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rpA9e-001HmK-Vc for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Mar 2024 17:00:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpA9e-001Hm4-MT for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2024 17:00:06 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rpA9c-006c9j-4C for pgsql-hackers@lists.postgresql.org; Tue, 26 Mar 2024 17:00:06 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-515b43b39fdso1009189e87.1 for ; Tue, 26 Mar 2024 10:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711472402; x=1712077202; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1iArsSqZ1AjfdJZVi+NqNdzTvcoFz5cak6TBGpkClPQ=; b=BUtXMMGz7yEl04r59GtElsr/6K+2OyK8aHZVVEMHjcYMkA+bTnxqwLbhHYrsA5lCYQ zxXZCZ4yOGq57Swl1l0hTNDHpvwKdOXkBCwqs5sBy6C0YOHeiWVhoJnJ5PZec0k0H+Wf RRR/LBR/3wolfxyLVnC9xFT9BGL2KkP0a+1EYk759kngXWJAJdjaENmt4FQfCJQhxI9n p1wGd5IFUKdGg68mEOZfI4DmcUu4ZLKBuly5vvRnuWtQ8NUX5yG02uqL2Z64QXM6zYcB dv/Bw9F3zWkVvKVFqgu0a441v1N2NKb85PIgMoXM0r+9hRj+QlXyCSGqpPMyvs5HxNfw 5aPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711472402; x=1712077202; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1iArsSqZ1AjfdJZVi+NqNdzTvcoFz5cak6TBGpkClPQ=; b=U/zUn0fP2bbjz2V57TzkAbYNJUFohGkHwzWtZuVuuF4jzqkPXIxu6qMbwwQnAndIZJ gueGCCAd7LQdJJj/jy9/LEdxUEdMkxY7FcssxMa40Ry3wTdvWp/xnS6oJoaZViIGZ04E Qy1xrWYTdWxRAu6yRKjCDE06R5aMAPmKqcNzfdZ4P5YwlQWsgQTIwPDedzczqADKwGCa gVstuTMbqhdIxijiktLAl8J9a+SHsUokzhCLmLwpA8HkCG4lKWqE52bODx/SLIyu/IlM xR+jhNllgByjYMUYgmptatXLnA0UDIcRiuylZkVt+2a3sOuRm8BE71aT1kEEUaksAtrz MQDA== X-Gm-Message-State: AOJu0Yyn7hQ8IkDrNEpmWpiLiGQ448sN+AIn21JtXMTsVmQBIfOLa0tz jHN+05M+0Z//KLO/ZWOmZibN3Ycyg561wjnFaNZDT5YbhJPBdmBW X-Google-Smtp-Source: AGHT+IFmABSD+dRNUHf8JJlGjQ41vfUH/C+rnhyW4cw5cxq7neKfy8j4scE6WGc+2jd8KF6BHYYnXw== X-Received: by 2002:a19:e048:0:b0:513:d4d7:1233 with SMTP id g8-20020a19e048000000b00513d4d71233mr860539lfj.10.1711472401600; Tue, 26 Mar 2024 10:00:01 -0700 (PDT) Received: from [1.0.0.7] ([178.155.17.223]) by smtp.gmail.com with ESMTPSA id x22-20020a056512047600b00515939472e0sm1564316lfd.176.2024.03.26.10.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 10:00:01 -0700 (PDT) Message-ID: <242fc7c6-a8aa-2daf-ac4c-0a231e2619c1@gmail.com> Date: Tue, 26 Mar 2024 20:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Properly pathify the union planner Content-Language: en-US To: David Rowley , Richard Guo Cc: PostgreSQL Developers References: From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello David, 25.03.2024 04:43, David Rowley wrote: > I didn't see that as a reason not to push this patch as this occurs > both with and without this change, so I've now pushed this patch. Please look at a new assertion failure, that is triggered by the following query: SELECT count(*) FROM (   WITH q1(x) AS (SELECT 1)   SELECT FROM q1 UNION SELECT FROM q1 ) qu; TRAP: failed Assert("lg != NULL"), File: "planner.c", Line: 7941, PID: 1133017 Best regards, Alexander