From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: digoal@126.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13791: postgresql 9.5 beta2 brin bug (cann't auto update)
Date: Thu, 3 Dec 2015 18:07:30 -0300
Message-ID: <20151203210730.GT2763@alvherre.pgsql> (raw)
In-Reply-To: <20151203012048.5892.94586@wrigleys.postgresql.org>
References: <20151203012048.5892.94586@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
digoal@126.com wrote:
> 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.
Yeah, index summarization is not immediate for block ranges that are not
already summarized. You can invoke summarization by running VACUUM on
the table, or by using the brin_summarize_new_values() function. That
would improve query execution too.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: alvherre@2ndquadrant.com, digoal@126.com
Subject: Re: BUG #13791: postgresql 9.5 beta2 brin bug (cann't auto update)
In-Reply-To: <20151203210730.GT2763@alvherre.pgsql>
References: <20151203012048.5892.94586@wrigleys.postgresql.org> <20151203210730.GT2763@alvherre.pgsql>
* 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