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.96) (envelope-from ) id 1wCI8I-001q6N-3A for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 14:19:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCI7I-007H24-08 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 14:18:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <3danissimo@gmail.com>) id 1wCI7H-007H1l-2R for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 14:18:20 +0000 Received: from mail-yw1-x1136.google.com ([2607:f8b0:4864:20::1136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from <3danissimo@gmail.com>) id 1wCI7G-00000000oKN-2hW0 for pgsql-hackers@postgresql.org; Mon, 13 Apr 2026 14:18:19 +0000 Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-79853c0f5b9so53660057b3.0 for ; Mon, 13 Apr 2026 07:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776089898; cv=none; d=google.com; s=arc-20240605; b=eKkZC060STcQyaR1NrHL2yA9NE+Kx64OAZuhUsDGrZvDcsC2h6tAUg/dzcIhCAizdw 7MWzxx1DJhtJVYWNK7rBBKBI+arom/5VYEAOhKi4XV2TGB9qqGctFHKK+QNv9Sc2iqGL Ss3YEMnQt4aJhtguxbSrDeXdvncMGiNVLiupPj4zCeQ655ay3Iln2ujcPmqmWFF9+onz vDGOSdPxR/gx15I7uZbNgY+uDIUXeyWBgeuT6xVeYXCv4IFBEa++HU5Y5eTT/KAiWaJL vw0qvFaC7lhCJc3GnjS5U23tYHtocD/z+4MtBWzZcD8ZcUmFnZUEEsV/siHIMBO2C8d5 wCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GIVNfx8fRvNWEbk8Xw1PKgITILaInH1+RTjDmYUhq6c=; fh=xOHk6EXGfug+FXx8emFcciKbzES4coAvTjfDBuFnzBc=; b=aEIEmArN+hHm7ZE0j0ZPzmMx90gHMtVEuWOdv/kHCpjAm85fUuTPEFWK6ocwi7utK9 D0TpxLfshFT37Umy0RMy6FCDa2wPLepRuKVtQp+K7QzdWEdEeXeBbSriTSEhus8+sMRH FbxnuIC7AxXthGclJYW6AISBqtLJgWSoPEFg3PR1VZAFssw9iKAFPGoLgslCYgMqNeru 7xA+i8uRDwYkSfFaun8Of+jXvWnAdqvl6bWf+dWDDaP07ZP2nu5hL4W+kHgNgWqc4h3D ECMVCX3ghd1VbhL0VVZ689Z+JRucfZM8ma7Q4EL0wQ5yqWcZ2+o3b4GiIjdPS0YL1xwe UHAA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776089898; x=1776694698; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GIVNfx8fRvNWEbk8Xw1PKgITILaInH1+RTjDmYUhq6c=; b=oXpBvGund7PV3250Q9W5Xt3WeN6I6FcJSouRodl4wYf4NPzy1j8RIB4f4x2UX7A71X 2vjvgxyXVyVvGzitz+ArpNA1Q4qOom8qLqEoj9RBt2fVio1H/C7wQq3IbeXZbcMhMIYl lL+hLTl3rGnUvBgCL8koUTiW1+BuSgmwXJke/HRzeUSIp/+oPOjL4YPey+iN2TIoRnZO ID39Zq7w+xP7wbSa9gx1B5zjsbN5eFh4fDPKs8T1hdfc9/P75CnpXIwI4mQg4BP6TLH3 g0cmSP+AWZXjWsLr1IforutYU3BGF2j9wewG1m+VgRTj1Q+n/xD+2NMDtgaFazr+hzzP bwMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776089898; x=1776694698; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GIVNfx8fRvNWEbk8Xw1PKgITILaInH1+RTjDmYUhq6c=; b=J6Wp28fCnHhMjm7SimU4KwiBfa0krFNDJwAMGFL/YxBIeLoxd5pdnuUm3DcbWxjvNW s0Vj4B90jHLuYEcr9MDagx+0qtCozrHg5RUEbo0ZmplBEANE9wT45XpoT9fQEizOGccj txZad8N2COiBkKd6xYas424k7wZqwuHZSWjaUE9rpFSfr6k1Dp1U1kp7Rt9+qtb7az0a N72by1w4WCGpTE+jjCd5clnA7Ih0+teLa/SGvbPeXAcIUsBeJKyqUedohh+7c2x2ojSX TtgVWuJYYW+zMgz4Ama//I8bitLj4xWKC6GpPkY818BB8rV65JTmDLWkjtpv6unVa97a 6rjw== X-Forwarded-Encrypted: i=1; AFNElJ9stfNV7rPY8Toq70QCqMvmc04KfhXJeCLmoVWJ7nBV3jAlyhgA6Pfhh2PX//oQpdvsrLk34pImmllaSZ3k@postgresql.org X-Gm-Message-State: AOJu0YzZZE0EoisxRZxAHFEt44AY5NLJe/u//xTOQdVHiwBNLjMuZEU6 Fp59q2DOU8SR/TivwaettzXB9id4aAiLYDfGN6J2lTqkxyrfX8mr4x+PSjfecFuOYPpXqVZt0lT HWjmjD6MpHHunLYHrR1QBpkBWDgxFKKM= X-Gm-Gg: AeBDietnyc16td1qvJ5qmJipAnr/02KSltCDCEfFg3u9kn+gmBuf8eFbh7H9IZFFHBU 3bdG7fe0GE7bhqgwg+SC83tODtcxirvmKBjivmmQWxiAbXb7f1LXfdhdDnjXEaUQ3dGgL84uZU1 fBoH2Pu8ZjTOh2jqJjlbms3DIlcED320dk12LzWZeSQIFYSkTbwGjSL5zya05ChFEto4lHxkk/O oatm4CA14rALMEKtELgviW7MV4mmtAQ+emfZgiu75+6STli+WcPslid2cgGZXoq4fEnzVthpIjW IUZwp5sY X-Received: by 2002:a05:690c:c4fa:b0:7b3:9f53:936c with SMTP id 00721157ae682-7b39f53a107mr25294817b3.9.1776089898304; Mon, 13 Apr 2026 07:18:18 -0700 (PDT) MIME-Version: 1.0 References: <1a32fc83-df78-4774-97dc-2bb06dbb16e9@uni-muenster.de> <3529398.1774273446@sss.pgh.pa.us> <4075754.1774378690@sss.pgh.pa.us> <67637cf8-8cbf-4f86-8775-52aa0329972d@uni-muenster.de> <402bbc8d-728b-4467-8024-31c2bc101ead@uni-muenster.de> In-Reply-To: From: Daniil Davydov <3danissimo@gmail.com> Date: Mon, 13 Apr 2026 21:18:07 +0700 X-Gm-Features: AQROBzCptQ7K-TkoG9fSTAjePqkbMOxxydPPIVQqFNVe5EmDv-QkfRt8JlDxEkI Message-ID: Subject: Re: Fix bug with accessing to temporary tables of other sessions To: Soumya S Murali Cc: Jim Jones , Tom Lane , Stepan Neretin , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Apr 13, 2026 at 7:39=E2=80=AFPM Soumya S Murali wrote: > > > I tested the v16 patch on a clean tree and verified the behavior > across multiple execution paths. Thanks! > Cross-session access is consistently > blocked; all attempts result in an error - "relation does not exist" Hm, our patch should give an error like "cannot access temporary relations = of other sessions". If you see "relation does not exist" I guess you try to ac= cess other session's temp table only by its name. It will not work since postgre= s will search this name within the "pg_temp" schema of the current session. Y= ou should explicitly specify other session's temp schema name in order to acce= ss its temp tables. You can find examples in our new test. Please, let me know if I am wrong and the current patch actually allows "relation does not exist" error to occur. In this case, it should be fixed. -- Best regards, Daniil Davydov