Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a4ZAD-0007m5-1E for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Dec 2015 19:03:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a4ZAC-0002ok-KE for pgsql-bugs@arkaria.postgresql.org; Thu, 03 Dec 2015 19:03:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a4Ia7-0004Ll-CQ for pgsql-bugs@postgresql.org; Thu, 03 Dec 2015 01:21:11 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a4Ia0-00027H-N9 for pgsql-bugs@postgresql.org; Thu, 03 Dec 2015 01:21:10 +0000 MIME-Version: 1.0 Subject: BUG #13791: postgresql 9.5 beta2 brin bug (cann't auto update) To: pgsql-bugs@postgresql.org From: digoal@126.com Date: Thu, 03 Dec 2015 01:20:48 +0000 Message-ID: <20151203012048.5892.94586@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" 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: 13791 Logged by: digoal Email address: digoal@126.com PostgreSQL version: Unsupported/Unknown Operating system: CentOS 6.x x64 Description: ostgres=# create unlogged table test(id serial8, info text, crt_time timestamp); CREATE TABLE postgres=# alter sequence test_id_seq cache 10000000; ALTER SEQUENCE postgres=# create index idx_test on test using brin (id) with (pages_per_range =1); CREATE INDEX $vi test.sql insert into test (info) select null from generate_series(1,10000000); $pgbench -M prepared -n -r -P 1 -f ./test.sql -c 1 -j 1 -t 1000 the brin index cann't auto update, when i create it 224k. and when test some times elapse, it's also 224k. and when i query , select * from test where id=1000; postgres=# explain analyze select * from test where id=1000; QUERY PLAN -------------------------------------------------------------------------------------------------------------------------- Bitmap Heap Scan on test (cost=12.01..16.02 rows=1 width=48) (actual time=47.930..73214.043 rows=1 loops=1) Recheck Cond: (id = 1000) Rows Removed by Index Recheck: 489999090 Heap Blocks: lossy=539248 -> Bitmap Index Scan on idx_test (cost=0.00..12.01 rows=1 width=0) (actual time=47.818..47.818 rows=5392480 loops=1) Index Cond: (id = 1000) Planning time: 0.282 ms Execution time: 73214.128 ms (8 rows) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs