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 1pRLuQ-0007mk-0d for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Feb 2023 23:37:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pRLuM-0006s8-Lx for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Feb 2023 23:37:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRLuM-0006rx-6m for pgsql-hackers@lists.postgresql.org; Sun, 12 Feb 2023 23:37:22 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pRLuF-0001m2-B8 for pgsql-hackers@lists.postgresql.org; Sun, 12 Feb 2023 23:37:21 +0000 Received: by mail-io1-xd2b.google.com with SMTP id r6so3957953ioj.5 for ; Sun, 12 Feb 2023 15:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=URW+MS5gIuhHtZj4F8T96Xx4E07F7wewlRt6ms+GRE4=; b=jeIU7de1z/xyCJaYO5VrXhVYQI/zecScwn7c9EzOWnzkSrwgJesbts4av2rqGHM0kO OX+s4fcZ/o+2+32X05xznkkoz2QxijVQIKV5iFoiu7Pp16xb+V3BmJVQ/nyBUdeSt65a gw/8QsI3TJgo2UuRwwUYcavtdji95V6D2tQTVG8bUV7xBfJSl+EO/HgWP9xPEXYCfD0T Qd+SvcZ0frcJPPMgyxsDZ8P2JkG/ZpLX7uYm9jBYsby3QmuEqZ4YXoFwqTshiP+igQ7d HCozQ3Xi/UMgR5VC2O4bPsXToXeRipblt4hr9TQxUP6OId3GoAWnPd9cFw6XiT65t0/r 6r9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=URW+MS5gIuhHtZj4F8T96Xx4E07F7wewlRt6ms+GRE4=; b=N13x0joHWamYEbmkoJ5PdG2sw9Vj7Qce4oo/iF2CCj367m2IJU+aB+wQx75b/b5PZs yAzExxxDRCM4louusTpOn/dNIOxOvIgLE6F0jV9Q77LqL4DyDMqVN6re8wfo6RczI5HN +T/xex92qHo2XyaQmKyNIdCSsWQgPh3c0JIjh9x2Hx5ty7ouJm31HkGpFrt8FGrVUPZl 70lpSBdRQGgcSdxoVEpw2u/LIv7a6DDDp6TC0d+bO/Dzb0ZgnBXbO8dMqGrACRbucWSr HBvKIGLEROlDA8hVAKPG5FOoOwv5akjA9wm0KLz8I37IGgSfnr4gZyn2c+N8a8uGV1d4 Hhmg== X-Gm-Message-State: AO0yUKUHzyczMbyuL0QDa/+ZLW3U/X+p0n2+WqU4wuqqXElwD551E29y Vqgwy/1NngtFb84Spxr6RF4kGQ== X-Google-Smtp-Source: AK7set+PJyPS8Lqw9K+E6bRG8V/gxrjQ2KPErynuqhlobq6ai0RIiAcp/ejRcjZsO7Sc+6Jy+ZyreQ== X-Received: by 2002:a5e:d517:0:b0:719:e423:4329 with SMTP id e23-20020a5ed517000000b00719e4234329mr18318399iom.7.1676245033274; Sun, 12 Feb 2023 15:37:13 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s19-20020a6b7413000000b0073f8a470bacsm105016iog.16.2023.02.12.15.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:37:12 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id B9E1A800530; Sun, 12 Feb 2023 17:37:11 -0600 (CST) Date: Sun, 12 Feb 2023 17:37:11 -0600 From: Justin Pryzby To: Amit Langote Cc: Alvaro Herrera , Ian Lawrence Barwick , Tom Lane , David Rowley , Greg Stark , Julien Rouhaud , pgsql-hackers@lists.postgresql.org Subject: Re: ExecRTCheckPerms() and many prunable partitions (sqlsmith) Message-ID: <20230212233711.GA1316@telsasoft.com> References: <20221129092708.uooopfzpiwrhgedl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Nov 29, 2022 at 10:37:56PM +0900, Amit Langote wrote: > 0002 contains changes that has to do with changing how we access > checkAsUser in some foreign table planning/execution code sites. > Thought it might be better to describe it separately too. This was committed as 599b33b94: Stop accessing checkAsUser via RTE in some cases That seems to add various elog()s which are hit frequently by sqlsmith: postgres=# select from (select transaction from pg_prepared_xacts right join pg_available_extensions on false limit 0) where false; ERROR: permission info at index 2 (with relid=1262) does not match provided RTE (with relid=12081) postgres=# select from (select confl_tablespace from pg_stat_database_conflicts where datname <> (select 'af') limit 1) where false; ERROR: invalid perminfoindex 1 in RTE with relid 12271