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 1wNZFD-000uS2-0B for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2026 16:49:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNZFC-00Dxex-03 for pgsql-hackers@arkaria.postgresql.org; Thu, 14 May 2026 16:49: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.96) (envelope-from <3danissimo@gmail.com>) id 1wNZFB-00Dxec-2O for pgsql-hackers@lists.postgresql.org; Thu, 14 May 2026 16:49:05 +0000 Received: from mail-yx1-xb134.google.com ([2607:f8b0:4864:20::b134]) by magus.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 1wNZF9-00000000bvm-1lOf for pgsql-hackers@postgresql.org; Thu, 14 May 2026 16:49:05 +0000 Received: by mail-yx1-xb134.google.com with SMTP id 956f58d0204a3-65c396d3b36so10204733d50.0 for ; Thu, 14 May 2026 09:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778777341; cv=none; d=google.com; s=arc-20240605; b=jxJUkfsnxBrSfis/32O5Azmyy26MmxK7QG0fuJp7V/xzBkoKwxQMFygZ1s5f+CGJ48 O9wajUyO0zdhrpbqbwIEUG+Ac0CNhtT1UdO/M+C8L9Ll8htR/ZT+scmdCbTx+UtCUhY2 FSr96pWU3swePtcycKcp586jVRDVQuO/xx2pQm4Iqa3cFseBPXpUo5M0VPTmYhmOrYnz H2aG92Yg5g+XlgXhnyl6fisxh4e7iPW5qmXFP+OiFyXoNls3Yozyn59+ZpoPh+Wr8vXa bPmQO4YFtmoQYhTv+Cj3tlJMN6RZyFUF4bB23cDPPInLyutiL9HIgtU3KLVBPUOP29oo zZyA== 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=6onaBFAtdAcwkhHNW1hRWnXqr/FEH6ds8THtN4OXrNs=; fh=k3GQcRQkVfLeXQDoRfyYn59TekZ2Jgi/CBUu9Y0J3bo=; b=F6OeQY5pASJOnG2bYOXck9hLL3mmVY2X8AT/ODIJtvNI3a6cTK1HVP57VEaEXX89Rt 3UgupiBLMWfgjwYgNet2rTllkJzh8hxwyIf9RsPMqVioDBI6rQbKp7RxSHIatapNoyoe rS+STEyMALiv35Tzicob1iluPL+tAyDZ6fFiLiWi3R9YboW0DAs6dJrVr2xQIzOsiTb0 usjIl8Xcw4W2XLL+3JvhcOhSZzfmCDLEEDkqR5SRqwvT+STxbBOq675p9S4lwOtWZ+XN HLX/c5JdSvAN3SHpJ2od5BEpVxtqAQCroBkd+tO4VoBBdTo5SPD0+laGzb5HNlHk3oXl A8AQ==; 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=1778777341; x=1779382141; 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=6onaBFAtdAcwkhHNW1hRWnXqr/FEH6ds8THtN4OXrNs=; b=jfZBAJbN1qHbLev3Dtkg8jfYwYe9FND7qT1uYi0E69S0r2SbVrrtZ8LbYN8xYA8Sv1 dxW++f0NqzCVj2HZq5dJ6qp0W2wdTm1ZWQB4JGaIjVxVObiBaG+Rruj3+knVv7XMppJL /BqcCPSFEFR8VEZcEj0ounPjMK8pmUrLGVwMALkebUXQ6b6Xw/j+ETxyLeep5wgSpY6w mWGYzrJ5YBzBC5nioX6vlE4bQ/j0M/lSjAsKDg7DCSWuloN/JhycQGATcNNsJEUJeTOo Y8bO/L6xP32eFh4JHbr8ej1r54I0RFb+OP9ID4N+coQr2kncXQWtfKcGa4gQ9AyoVL7Z Btdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778777341; x=1779382141; 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=6onaBFAtdAcwkhHNW1hRWnXqr/FEH6ds8THtN4OXrNs=; b=CsGTEFXjpd965a8gL0J8X1YiqCOW813uaRAMkH0JRF5bemx1Qy/sNapivU6m/wVPZW ZLuMoXlxk8AvJJ80WnKuNwxzBP1iuUUQP2VDz0kgUgwI8CNyitBhrAKeli3FGO1M9lSn u8k5UF0p2mQYK9P+yLglO1w11zusn6Yf1lYz0HlUZUcaL0nNGMwSaRlB8ca/i58UmVuf 3x3UnD4Daf/uvf6h6j5QQsyd8a3ivU6vQrUbbg7PxP/XNYpLNt3H/EaFFnkyN3PbKNnc 8fFRNXfywppRCsqdpUfWUQwfWmpH7Q+0si1ek61tqf9rLFVTUDOmxSRS/j6IqghxoA12 CYRA== X-Forwarded-Encrypted: i=1; AFNElJ8vC97kP8fuBeckud/5QD+mrKgiyaXVxn27ZRm+6kQtBJEB4K2krvYgnN3rBDWabJiU/1RjVlhsDTiOE2pt@postgresql.org X-Gm-Message-State: AOJu0Yw06aAd+LgGd3dRXQtCCazHTCd1qvzm8WQhBi9SijVHnZPMg9L1 koHqyL9as8DXCPsowvjCWSRbamAfzg5aBhT83qR4V0Pt8tXyPpzOnOfnJxv6OovBB6uRRvAQ4LM sHSa5VWSS0eAonI3cQBwskW8hBX1THDA= X-Gm-Gg: Acq92OHUmz0a72Dvzm1PNqz4VH9zvZyM8hi8a9aTONfC3SE1EKOY1pECMEsePJ+fUtq XcWYi1G6If+ywOk0qKL2rYGy7mOLusR1v5SJfWq7Z6xs158Zg6R5ztk8vDejLZYLxcckj0D+TYz Dh/RAgjxbff8hebGiz3oRKh7UQfPfS1aVPo72Lkg1GCYlVXA0w+/XEc1nn41kC35h6i77/Qoksq /0+uDKXNAfUGaaS288d2AixaG7dj2m2b/cMssNa13vRkXZrtrv2Rbe6rZirCJDpMcd9FWZ6FlIa Sj2CARNwGmGSOeFG3o/6juib9FwvEw== X-Received: by 2002:a53:d10c:0:b0:656:ad5e:12ea with SMTP id 956f58d0204a3-65df641d349mr6768639d50.64.1778777341112; Thu, 14 May 2026 09:49:01 -0700 (PDT) MIME-Version: 1.0 References: <239d181d-1415-49ee-ad57-b307f1a7ba66@uni-muenster.de> <0e666e40-d003-4c92-95cf-1a33a647401f@uni-muenster.de> In-Reply-To: From: Daniil Davydov <3danissimo@gmail.com> Date: Thu, 14 May 2026 23:48:48 +0700 X-Gm-Features: AVHnY4LZUZBvcClOdfEcH_D4ibWQceB5PJVuu2EmBuqQA_iPvD_d9qpBAn1x6Zc Message-ID: Subject: Re: Fix bug with accessing to temporary tables of other sessions To: Alexander Korotkov Cc: Michael Paquier , Jim Jones , Soumya S Murali , Tom Lane , Stepan Neretin , PostgreSQL Hackers , Mohamed Ali , Nazneen Jafri , Shawn McCoy 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 Thu, May 14, 2026 at 8:39=E2=80=AFPM Alexander Korotkov wrote: > > On Thu, May 14, 2026 at 9:58=E2=80=AFAM Michael Paquier wrote: > > On Thu, May 14, 2026 at 09:12:58AM +0300, Alexander Korotkov wrote: > > > On Fri, May 8, 2026 at 9:19=E2=80=AFAM Michael Paquier wrote: > > >> If you wish me to look at this patch set in details, I may be able t= o > > >> do so around the beginning of next week. I'm not sure that there is= a > > >> strong urgency in tackling this issue for this minor release, this > > >> could wait a bit more.. > > > > > > Any news from your side? > > > > (Forgot -hackers and other folks in CC, sorry about that.) > > > > Unfortunately I have not been able to get back to it this week, and > > next week is moot. Perhaps it is better to not wait for me here, so > > feel free to go ahead as you feel. > > Thank you for noticing. I've pushed this today. I have to slightly > revise the tests to run on 18 and 17 (different log messages, and > default value of log_lock_waits). > Thank you very much for your help!) BTW, we still have another problem with temp tables. Tom wrote [1] about it within this thread: > Reality is that we cannot know whether an > unqualified-name RangeVar references a temp table until we do a > catalog lookup, so IMO we should not have a relpersistence field there > at all. At best it means something quite different from what it means > elsewhere, and that's a recipe for confusion. But changing that would > not be a bug fix (AFAIK) but refactoring to reduce the probability of > future bugs. I'll try to implement that next month. But if someone gets ahead of me, ple= ase attach me in CC of the new thread. [1] https://www.postgresql.org/message-id/4075754.1774378690%40sss.pgh.pa.u= s -- Best regards, Daniil Davydov