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 1vJd2B-00Dn4p-0A for pgsql-general@arkaria.postgresql.org; Thu, 13 Nov 2025 19:31:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJd26-0037wK-1W for pgsql-general@arkaria.postgresql.org; Thu, 13 Nov 2025 19:31:02 +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 ) id 1vJd26-0037wC-0F for pgsql-general@lists.postgresql.org; Thu, 13 Nov 2025 19:31:02 +0000 Received: from mail-vk1-xa43.google.com ([2607:f8b0:4864:20::a43]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vJd22-007aqq-2n for pgsql-general@postgresql.org; Thu, 13 Nov 2025 19:31:01 +0000 Received: by mail-vk1-xa43.google.com with SMTP id 71dfb90a1353d-559671d0bb6so41599e0c.0 for ; Thu, 13 Nov 2025 11:30:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upgrade.com; s=google; t=1763062256; x=1763667056; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4TntSafqbaEOflgtFgaSjVHompx56v2fDIM87Rh11H4=; b=MKFU+G5t+pWu3h/LmIf09BOzeKOg47NBG1DOF2iXIrKYGxvW7wQCRn1jMG6GErYgGx ShH3gFHoH6C2dY1yUrHlhewTJL5KYUJDBFRFA5ybu4yXdFEYO5ObQtG0mEoRwDkyNqxi T+r4Q0mx1sidGDFD+9kXoP9JCCALOB/EMjPYWOHl1yDvYxvD1Vicqx89p8pYdX8ibJse p5GTI1TaLZMh1EOojCqq6zeyOd+NejpS0uVkibVIUs869/aKm++k+5g6R9WChxJkC94A l0hMiaBy497fcwiYXSkPCEfY5TqGara2Qb0PAwUukMQd3IrcK0yHiG7woGoQgjF2wdw5 by3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763062256; x=1763667056; 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=4TntSafqbaEOflgtFgaSjVHompx56v2fDIM87Rh11H4=; b=A0a/FYCk1NLV95EmhmkhfASXn9UUF/uFpdplaw7N9UWwXI7vyAc+FhGzlW6KAeYUPZ sea/vEUdkQRObvgyxeMjk8/Lx6Scddrflye440zsCHm8YzffE9eQ3ep3dLT0BgieZKab t/YD4D/ocwTVHb+Zfc8/EsLOyqngp6clBgLchbpRui3EdIoVeVVi8Iea+gxqRpgrvFAr wuweCyLuIqXMC6tSJzf2UIkyO1S3TgzfBU+mSqdCdYC5xGJ6N2WEHKchGYEsDhF9bVdY ycH6tC28uW06GorPUTxz02T3Q3PwsG+8K1nw26UDU39EHMoIoM/2jZsnUUEQ9j9LdRX7 oa6A== X-Gm-Message-State: AOJu0YzqgUXVGCbng7zX9bf7k0gX4peocsr6Pf3SoRoU17T3sgCrLT7+ phNNOLAzfA8njV79xy7MvA4QMd4jy+3oGug0YnUWtlYDXmq6KfqdG4Et4M4jxNBOUsOFrJcl5Vf PXBLbjnFTNBfCLvbkWzKl2oqbHaymQ/cjYgjDcD0awC2DmVeVvKM7ouD1n5uV X-Gm-Gg: ASbGncsep7GIvOb89DwiPuYYbu3ELc4jlMcglJgJ9+s+uXde1X5RxMucs93mnXD3/9Q rrTAz4fokXNG4t5xOsrW6O437MxVmpSvFi/XPw9yMHWB7zRKel7ENdS8LEhSWG7djEJ/PkRGBlP nk7pLYwZUSJ+BfYN9ViHRqinpbwGQWO06pmT1wYDn6JdrL9ioR+UmPYcKolKywEi2KQLl6tRB/l LVqqHJmFwioDqZXkcfMt/kWj3JeTFw6BNZNR8V2MnMa+h1/1qLFp8WFXurteGdhzInMSQo= X-Google-Smtp-Source: AGHT+IEXsv/vNr6u481WXy7O0JTZMirjB/4Bd4XbsHEds4do+cADYp9VZGzOtg7LRp2VIEDtIl/wENXJ+wMG7Gv2Ydk= X-Received: by 2002:a05:6122:c2db:20b0:559:860b:7b1c with SMTP id 71dfb90a1353d-55b1ebb3390mr568e0c.2.1763062255490; Thu, 13 Nov 2025 11:30:55 -0800 (PST) MIME-Version: 1.0 From: Jim Nasby Date: Thu, 13 Nov 2025 13:30:44 -0600 X-Gm-Features: AWmQ_bl1tc8bZ5nSsn6zMky45X1OoUGet00lKoIvvnB15DlhGbdsKpiJ-I2xD70 Message-ID: Subject: Question about MVCC caveats To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="00000000000074aba806437eebaf" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000074aba806437eebaf Content-Type: text/plain; charset="UTF-8" At [1], the docs state that table rewrite ALTERs result in the relation appearing empty after the ALTER if another transaction had already taken a snapshot before the ALTER. A simple test with a repeatable read (or serializable) transaction confirms this... but is there any other situation where a snapshot would be taken? 1: https://www.postgresql.org/docs/current/mvcc-caveats.html --00000000000074aba806437eebaf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
At [1], the docs state that table rewrite ALTERs result in= the relation appearing empty after the ALTER if another transaction had al= ready taken a snapshot before the ALTER. A simple test with a repeatable re= ad (or serializable) transaction confirms this... but is there any other si= tuation where a snapshot would be taken?
--00000000000074aba806437eebaf--