Re: reloption to prevent VACUUM from truncating empty pages at theend of relation
От | Masahiko Sawada |
---|---|
Тема | Re: reloption to prevent VACUUM from truncating empty pages at theend of relation |
Дата | |
Msg-id | CAD21AoB7eZ_FovWanrENZze3U_Uzws6yNsoX0NBXQNipQardoA@mail.gmail.com обсуждение исходный текст |
Ответ на | RE: reloption to prevent VACUUM from truncating empty pages at theend of relation ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>) |
Ответы |
RE: reloption to prevent VACUUM from truncating empty pages at theend of relation
|
Список | pgsql-hackers |
On Mon, Feb 25, 2019 at 7:01 PM Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com> wrote: > > From: Michael Paquier [mailto:michael@paquier.xyz] > On Mon, Feb 25, 2019 at 03:59:21PM +0900, Masahiko Sawada wrote: > > > Also, I think that this test may fail in case where concurrent > > > transactions are running. So maybe should not run it in parallel to > > > other tests. > > > > That's why autovacuum is disabled in this specific test, no? A comment > > may be a good idea. > > Exactly. The table is disabled for autovacuum to avoid being influenced by autovacuum. > This test expects that the inserted tuple is always reclaimed by subsequent vacuum, but it's not always true if there are concurrent transactions. So size of the reloptions_test table will not be 0 if the tuple is not vacuumed. In my environment this test sometimes failed with 'make check -j 4'. diff -U3 /home/masahiko/source/postgresql/src/test/regress/expected/reloptions.out /home/masahiko/source/postgresql/src/test/regress/results/reloptions.out --- /home/masahiko/source/postgresql/src/test/regress/expected/reloptions.out 2019-02-25 19:10:49.761438066 +0900 +++ /home/masahiko/source/postgresql/src/test/regress/results/reloptions.out 2019-02-25 19:12:34.885437911 +0900 @@ -117,7 +117,7 @@ SELECT pg_relation_size('reloptions_test'); pg_relation_size ------------------ - 0 + 8192 (1 row) Regards, -- Masahiko Sawada NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
В списке pgsql-hackers по дате отправления: