question about partial index - Mailing list pgsql-performance

From Yu Zhao
Subject question about partial index
Date
Msg-id CABWNxfHx1Eb7r_GdO1C8enAOeLZ4gUAAK1BHCUk1oCsgO1Q+-w@mail.gmail.com
Whole thread Raw
Responses Re: question about partial index
List pgsql-performance
In PostgreSQL 9.3.3 Documentation 11.8. Partial Indexes Example 11-2
(http://www.postgresql.org/docs/9.3/interactive/indexes-partial.html),
the partial index is created

CREATE INDEX orders_unbilled_index ON orders (order_nr) WHERE billed
is not true;

And the suggested use mode is

SELECT * FROM orders WHERE billed is not true AND order_nr < 10000;

My question is after an update to the billed column is done, will PG
automatically add or remove records whose billed are just set to false
or true to/from the b-tree?

Thanks in advance.


pgsql-performance by date:

Previous
From: Vincent
Date:
Subject: Re: Help me understand why my subselect is an order of magnitude faster than my nested joins
Next
From: Szymon Guz
Date:
Subject: Re: question about partial index