Unix Technical Forum

Re: On-disk bitmap index implementation

This is a discussion on Re: On-disk bitmap index implementation within the Pgsql Patches forums, part of the PostgreSQL category; --> Gavin Sherry wrote: > o Improving VACUUM support -- currently, VACUUM FULL means REINDEX for > bitmaps. Heikki Linnakangas ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 10:10 AM
Heikki Linnakangas
 
Posts: n/a
Default Re: On-disk bitmap index implementation

Gavin Sherry wrote:
> o Improving VACUUM support -- currently, VACUUM FULL means REINDEX for
> bitmaps. Heikki Linnakangas offered to work on this. Heikki, are you
> still interested?


BTW vacuuming seems quite broken as it is:

hlinnaka@heikkilaptop:~/pgsql.bitmap$ ~/pgsql.bitmap/bin/psql -a
postgres < vacuumtest.sql
drop table if exists test;
DROP TABLE
create table test (key int);
CREATE TABLE
create index test_bm on test using bitmap (key);
CREATE INDEX
insert into test values (1);
INSERT 0 1
delete from test;
DELETE 1
vacuum test;
VACUUM
insert into test values (2);
INSERT 0 1
select * from test where key = 1;
key
-----
2
(1 row)

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 10:10 AM
Gavin Sherry
 
Posts: n/a
Default Re: On-disk bitmap index implementation

On Tue, 5 Dec 2006, Heikki Linnakangas wrote:

> Gavin Sherry wrote:
> > o Improving VACUUM support -- currently, VACUUM FULL means REINDEX for
> > bitmaps. Heikki Linnakangas offered to work on this. Heikki, are you
> > still interested?

>
> BTW vacuuming seems quite broken as it is:
>
> hlinnaka@heikkilaptop:~/pgsql.bitmap$ ~/pgsql.bitmap/bin/psql -a
> postgres < vacuumtest.sql
> drop table if exists test;
> DROP TABLE
> create table test (key int);
> CREATE TABLE
> create index test_bm on test using bitmap (key);
> CREATE INDEX
> insert into test values (1);
> INSERT 0 1
> delete from test;
> DELETE 1
> vacuum test;
> VACUUM
> insert into test values (2);
> INSERT 0 1
> select * from test where key = 1;
> key
> -----
> 2
> (1 row)


Oops :-).

Thanks for pointing it out. I think I might have busted something merging
with HEAD. Don't you hate that?

Thanks,

Gavin

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com