Comments (6)
This should be fixed as of 2e8cca5 or b41bd64, depending on whether you're using v1 or v2.
Thanks a lot for the report!
from hypopg.
This seems to work better for a scale factor of 1. The multi-column index is estimated to have roughly 430 MB vs 150 MB for the single-column index.
from hypopg.
Hello,
Oh, that's interesting. Did you run an analyze on the table?
Could you run this query and show the output?
select attname, avg_width from pg_stats where tablename = 'lineitem';
from hypopg.
Yes, I did run analyye
and also tried with analyze lineitem
.
The result of your query:
tpch___10=# select attname, avg_width from pg_stats where tablename = 'lineitem';
attname | avg_width
-----------------+-----------
l_receiptdate | 4
l_tax | 4
l_extendedprice | 8
l_partkey | 4
l_orderkey | 4
l_suppkey | 4
l_shipdate | 4
l_returnflag | 2
l_quantity | 5
l_linenumber | 4
l_shipmode | 11
l_discount | 4
l_shipinstruct | 26
l_comment | 27
l_linestatus | 2
l_commitdate | 4
(16 rows)
from hypopg.
Thanks! I think this is simply an overflow, and I unfortunately never tested an estimated size bigger than 4GB.
I'll look into it. BTW it's already clear that the estimated size will be twice as big as your index, but this is intended, as it tries to account for bloat that will happen once you start updating the index.
from hypopg.
Thank you so much for your quick response and fix.
from hypopg.
Related Issues (20)
- Cannot create extension in psql (Ubuntu) HOT 2
- hypopg_list_indexes() does not work normally HOT 2
- Not working for Pg14 HOT 7
- document how to enable hypo_use_real_oids HOT 7
- Whether support the parallel use when estimated? HOT 13
- Handling multiple hypothetical indices for the same base table HOT 4
- Promote 2.0 release out of beta HOT 3
- Add test with one hypopg index and one real index HOT 1
- Hypothetical hash index may have different scan types in Explain output HOT 10
- Add test on temp tables HOT 1
- undefined symbol: errstart_cold HOT 3
- Use hypopg to simulate dropping existing indexes HOT 12
- Compilation Error Encountered: ERROR: could not access file "$libdir/hypopg": No such file or directory HOT 13
- After creating the index, use the explain command to report an error. HOT 12
- A weird index name issue HOT 5
- PG16 binary for Windows HOT 2
- HypoPG有window版本的嗎,祝你龍年大吉。 HOT 1
- About OS HOT 1
- column names not quoted in `hypopg_get_indexdef` HOT 5
- hypothetical partial indexes with quoting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hypopg.