From: bashtanov@imap.cc
To: pgsql-bugs@postgresql.org
Subject: BUG #13038: Unobvious snapshotting behavior on altered tables
Date: Mon, 13 Apr 2015 09:25:22 +0000
Message-ID: <20150413092522.26382.97939@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bashtanov@imap.cc
Subject: Re: BUG #13038: Unobvious snapshotting behavior on altered tables
In-Reply-To: <20150413092522.26382.97939@wrigleys.postgresql.org>
References: <20150413092522.26382.97939@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox