Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YhadD-0001Yr-1F for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Apr 2015 09:26:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YhadC-0004hc-13 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Apr 2015 09:26:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YhadA-0004hS-2w for pgsql-bugs@postgresql.org; Mon, 13 Apr 2015 09:26:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yhad1-0001Di-Cx for pgsql-bugs@postgresql.org; Mon, 13 Apr 2015 09:26:10 +0000 MIME-Version: 1.0 Subject: BUG #13038: Unobvious snapshotting behavior on altered tables To: pgsql-bugs@postgresql.org From: bashtanov@imap.cc Date: Mon, 13 Apr 2015 09:25:22 +0000 Message-ID: <20150413092522.26382.97939@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.1 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13038 Logged by: Alexey Bashtanov Email address: bashtanov@imap.cc PostgreSQL version: 9.4.1 Operating system: Linux CentOS 6.5 x64 Description: Hello! On truncate statement docs page there is a nice pink warning http://www.postgresql.org/docs/9.4/static/sql-truncate.html#AEN85039 This warning also affects some table-rewriting ALTER TABLE statement, see http://johtopg.blogspot.com.br/2014/11/postgresql-gotcha-of-week-week-45_6.html The problem is 1) This is undocumented. Please document which commands can lead to this behavior. 2) Not all the table-rewriting statements can show an empty snapshot. ALTER TABLE ADD COLUMN, ALTER TABLE SET WITH/WITHOUT OIDS and TRUNCATE surely can. ALTER TABLE SET TABLESPACE, CLUSTER, VACUUM FULL probably cannot. What is the difference between the commands in the first list and in the second one? Maybe this annoying behavior can be fixed for all DDL statements? Best Regards Alexey Bashtanov -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs