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 1vpn28-00G3eX-2u for pgsql-docs@arkaria.postgresql.org; Tue, 10 Feb 2026 12:40:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpn27-00FMEr-2S for pgsql-docs@arkaria.postgresql.org; Tue, 10 Feb 2026 12:39:59 +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 ) id 1vpmzC-00FMCA-2u for pgsql-docs@lists.postgresql.org; Tue, 10 Feb 2026 12:36:58 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vpmzA-00000001Rdy-1t8p for pgsql-docs@lists.postgresql.org; Tue, 10 Feb 2026 12:36:57 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-b884ad1026cso123991766b.2 for ; Tue, 10 Feb 2026 04:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1770727015; cv=none; d=google.com; s=arc-20240605; b=jWnErMFfVHbIn+BT3Y+oIPvgwkohz2wiKL4u2zT+wVBgguvPoUJdOxq5pwUU1wOmND UdGubmo5Kzak1Ookd5ZMvoY5F6axkYSXwJe5cH6TV7hantjx/Sj8VsVlt9LB2auAMffh tyhu08f92O1PHtU43pfTEViw9kU3tGKsfCv7TALnWpx8UDDAyzrFl4QWoySnQ/2cYAyP tJD0hXVFp9hbztZOWVTZPJoI3e8OWx/KnVlboUuNm3FOcdwcF2H7kOtWJ/lNCHYhBPkQ +vt5ScbHqYtHk0Z4ahiTc2hFw15UW3iwecy6tjVk6dhmI/8FPJ5fitbftjjb6hUP4UvS nScQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=wjIRH4DDI/nHBY6qbf+TanQTbcND0LNkBdNcKQWrKRA=; fh=eitnFYqiGz5Qd9tP4ETN4LQj8BMqIm+FgmdzoPwQKYs=; b=d/I3tL/XGVpscA+6JCRO1WpZuHUI37ko0B9gHNHg26h6MB1cCcG3NiPsZbSkbVrQ3i esqhYfS2WhuZ17LuMUqIlf61ooAdablrLWs0zFouOoKaBnQGNsgT8ayZyuEWvpVoyF3a 3vTacExyBATiRDPyv29Z4gdhl/fZlfj71jtz0KlvvJNLBMjVUEmaaeVuJlcSYjkkWpKf ReGvhd5+Ty600t0xrODf3U/zpUoQexIYJcjuYh9RW8MEEMCdF/pdrGIT3x50Pf5Rgt10 CMIZ2nFk/0jnDXtl/KQIcN5olqmcgASjHBG0k/W9wuXOKcnsfibi99cHbWo53RCuH9bR 45yA==; darn=lists.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=20230601; t=1770727015; x=1771331815; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=wjIRH4DDI/nHBY6qbf+TanQTbcND0LNkBdNcKQWrKRA=; b=D5f8n3+7z4rEYm3yJPwuf9N9dbdZtnsSLVsOyXTRQhoSHOFFaESrkNEj6i0BMo75qZ BgOTpvWiefvm+fDCBHPlR05SQ7AaQlndHGHL1DMu/Af1B6lDWMCVQYzmrSX0Hf4A5Qhn nO0Dbd/hjHLrwTlO5vO164OQJAOztGdzPKaxvT6x41UtwR78+T5sZth+UiitoIJtVn+m ziAL1xKA/7LAa02Nl/HLlRS3OTSvk5Gfe5zaJgB/T9dZAv9JnK6EOhvLFRxE1AbfMq/T wEfhk1I+A7KqCWNyl9cMa/LuWZ3QRPg8HES22n9FcRAfAN1tWFzO2kRvZ9Am0qe93r9e 7Kng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770727015; x=1771331815; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wjIRH4DDI/nHBY6qbf+TanQTbcND0LNkBdNcKQWrKRA=; b=h6mUAybjmlWoaqi9MVw89lM9+6Z7HKVZ21ATxHADZHhB1PHVC0CHdj1YAkJ3eUOCBc u3vWfFT+U3VjqX815k3MRHJY1Q06jZn5Co7XnbaAHtyFZihUeyQpcckOWr41IjSAKCGy ii8ILpeWR/mA2u4rdADd609Dis3rvMSYhBOWOpGVGrLp+vWrhtetnYSwR2wTcmsbphvm VYebNCc6BrE5d4xiQniMSUcrTEIJzPm8miCwwMwAQch3Ocou6AxnJqaMZaKEz2iIMtvQ H7LhmTEbRudoDBTKcTkiSIlvxPcedmIudaj+ShcyMFkR5AMchIEcK9jyhBZF2HBswhzP jcUg== X-Gm-Message-State: AOJu0YzQLaNDr1vXwg282RUdEW3RkFyCZppxuWXwMV0si6u66pQBI3uu huFoCPeiU5SjdkqP5cb/9XOjs4t7RW3XditxybELd6u7XXLK//AqcSrEI5HMy/I6gTgup9BzSaT ZLgOXLJ3/ZTpGEVRkNAKEIRfYt51OjZVbqJ8= X-Gm-Gg: AZuq6aIf8GRRBvvpu2Ea+qg5fmN2nec5nkNcvKUl2cFwCxgbRKD8CmqvIy1kkgp0I9Y JB0/CWuB8B3nWBCTs6GPjtYOpwewRHWcDl26xlbUbojUf7hSYCvLBeUeQbNoJB4qDw6KJmx0NY2 FSY341WBezf+G+rycKfRZmTS62vOqD4Pjq6GqcAXu4TCIJhev9aHWC9DJpJnEDcAijtQEusVvWf R4VWodNtmeqGwrjTUfc1nf8Jt3yuqEKHXHIhUwWR6yKyz2IGlLkYNWQtG7oqU1suhjp8c3aPF6Z +YI6HQ== X-Received: by 2002:a17:907:6d0f:b0:b74:984c:a3de with SMTP id a640c23a62f3a-b8edf25a954mr831961066b.28.1770727014372; Tue, 10 Feb 2026 04:36:54 -0800 (PST) MIME-Version: 1.0 From: Junior Longtom Date: Tue, 10 Feb 2026 14:36:43 +0200 X-Gm-Features: AZwV_QifPUBXDNOCnBRs4VsJqlQaclYYUNBYLTnASvHcbBN7zL4pKVeq-pbPymY Message-ID: Subject: Update documentation to note that REFRESH MATERIALIZED VIEW CONCURRENTLY uses the pg_temp tablespace To: pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000af9a78064a778215" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000af9a78064a778215 Content-Type: text/plain; charset="UTF-8" Good day, Currently the documentation for REFRESH MATERIALIZED VIEW does not contain a note that the temporary tablespace is used. It is an implementation detail, but using the temporary tablespace will block PREPARE TRANSACTION with an error. I think it would be useful to note that on the docs: ERROR: cannot PREPARE a transaction that has operated on temporary objects I think it is worth adding a note to the CONCURRENTLY section on the docs to state that it will use the temporary tablespace and prevent using PREPARE TRANSACTION. It might make sense to update the error message as well. Let me know and I will raise it on another mailing list as well. The code that shows the use of the temp tablespace (it was a quick check from my end, so my conclusion might be wrong): https://github.com/postgres/postgres/blob/f33c585774223757b01c8eddd134d364492ed94c/src/backend/commands/matview.c#L301-L306 Let me know if you need more information. Kind Regards Herman --000000000000af9a78064a778215 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good day,

Currently the docu= mentation for=C2=A0REFRESH MATERIALIZED VIEW does not contain a note that t= he temporary tablespace is used. It is an implementation detail, but using = the temporary tablespace will block PREPARE TRANSACTION with an error. I th= ink it would be useful to note that on the docs:

E= RROR: =C2=A0cannot PREPARE a transaction that has operated on temporary obj= ects

I think it is worth adding a note to the CONC= URRENTLY section on the docs to state that it will use the temporary tables= pace and prevent using PREPARE TRANSACTION.

It mig= ht make sense to update the error message as well. Let me know and I will r= aise it on another mailing list as well.

The code = that shows the use of the temp tablespace (it was a quick check from my end= , so my conclusion might be wrong):=C2=A0https://github.com/postgres/postgres/blob/f33c58= 5774223757b01c8eddd134d364492ed94c/src/backend/commands/matview.c#L301-L306=

Let me know if you=C2=A0need more information= .

Kind Regards
Herman
--000000000000af9a78064a778215--