Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
Facebook
Downloads
Home
>
mailing lists
Bitmap Heap Scan and Bitmap Index Scan - Mailing list pgsql-general
From
Arup Rakshit
Subject
Bitmap Heap Scan and Bitmap Index Scan
Date
September 15, 2018
10:39:00
Msg-id
3114DACC-0756-4B5D-BD4F-D2D7F39471A8@zeit.io
Whole thread
Raw
Responses
Re: Bitmap Heap Scan and Bitmap Index Scan
List
pgsql-general
Tree view
Here is a explain plan of a very simple query:
aruprakshit=# explain analyze select first_name, last_name from users where lower(state) = 'colorado';
QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------
Bitmap Heap Scan on users (cost=5.86..161.40 rows=203 width=13) (actual time=0.134..0.444 rows=203 loops=1)
Recheck Cond: (lower((state)::text) = 'colorado'::text)
Heap Blocks: exact=106
-> Bitmap Index Scan on lower_state_users_idx (cost=0.00..5.81 rows=203 width=0) (actual time=0.098..0.098 rows=203 loops=1)
Index Cond: (lower((state)::text) = 'colorado'::text)
Planning time: 0.263 ms
Execution time: 0.517 ms
(7 rows)
I read this
https://www.postgresql.org/message-id/12553.1135634231%40sss.pgh.pa.us
and
https://www.postgresql.org/message-id/464F3C5D.2000700%40enterprisedb.com
to understand what this bitmap heap scan and index scan is. But there are some questions still in mind which I am not able to figure out yet.
Does bitmap index apply when normal index scan is costly?
Does bitmap index always store page number of matching tuples instead of just the tuples?
What is Heap Blocks: exact=106 ?
Why the cost is higher in Heap scan than index scan?
Thanks,
Arup Rakshit
ar@zeit.io
pgsql-general
by date:
Previous
From:
Chris Travers
Date:
15 September 2018, 09:44:10
Subject:
Re: Code of Conduct plan
Next
From:
Pavel Stehule
Date:
15 September 2018, 10:46:08
Subject:
Re: Bitmap Heap Scan and Bitmap Index Scan
Есть вопросы? Напишите нам!
Соглашаюсь с условиями обработки персональных данных
I confirm that I have read and accepted PostgresPro’s
Privacy Policy
.
I agree to get Postgres Pro discount offers and other marketing communications.
✖
×
×
Everywhere
Documentation
Mailing list
List:
all lists
pgsql-general
pgsql-hackers
buildfarm-members
pgadmin-hackers
pgadmin-support
pgsql-admin
pgsql-advocacy
pgsql-announce
pgsql-benchmarks
pgsql-bugs
pgsql-chat
pgsql-cluster-hackers
pgsql-committers
pgsql-cygwin
pgsql-docs
pgsql-hackers-pitr
pgsql-hackers-win32
pgsql-interfaces
pgsql-jdbc
pgsql-jobs
pgsql-novice
pgsql-odbc
pgsql-patches
pgsql-performance
pgsql-php
pgsql-pkg-debian
pgsql-pkg-yum
pgsql-ports
pgsql-rrreviewers
pgsql-ru-general
pgsql-sql
pgsql-students
pgsql-testers
pgsql-translators
pgsql-www
psycopg
Period
anytime
within last day
within last week
within last month
within last 6 months
within last year
Sort by
date
reverse date
rank
Services
24×7×365 Technical Support
Migration to PostgreSQL
High Availability Deployment
Database Audit
Remote DBA for PostgreSQL
Products
Postgres Pro Enterprise
Postgres Pro Standard
Cloud Solutions
Postgres Extensions
Resources
Blog
Documentation
Webinars
Videos
Presentations
Community
Events
Training Courses
Books
Demo Database
Mailing List Archives
About
Leadership team
Partners
Customers
In the News
Press Releases
Press Info
By continuing to browse this website, you agree to the use of cookies. Go to
Privacy Policy
.
I accept cookies