[GENERAL] Re: Is my understanding of bitmap index scans and recheck cond correct?

2014-12-21 Thread AlexK987
I found the answer here: http://www.postgresql.org/docs/current/interactive/using-explain.html Thanks! -- View this message in context: http://postgresql.nabble.com/Is-my-understanding-of-bitmap-index-scans-and-recheck-cond-correct-tp5831616p5831662.html Sent from the PostgreSQL - general ma

[GENERAL] Is my understanding of bitmap index scans and recheck cond correct?

2014-12-20 Thread AlexK987
I think that when the query planner chooses to use an index to satisfy a range scan, it verifies how the order of index keys is correlated with physical order of rows in the table. If correlation is low, than the planner wants to make sure that it reads each page only once. So, first PG scans the

Re: [GENERAL] Is clustering factor stored in pg_stats.correlation?

2014-12-20 Thread AlexK987
Thank you Tom, that's exactly what I meant. I believe the term "clustering factor" is well-known: http://use-the-index-luke.com/glossary/index-clustering-factor What is the right word to use instead in Postgres universe? -- View this message in context: http://postgresql.nabble.com/Is-cluste

[GENERAL] Is clustering factor stored in pg_stats.correlation?

2014-12-20 Thread AlexK987
I believe that tables' clustering factors are stored in pg_stats.correlation. Here is how I came to this conclusion: create table narrow_table as with numbers as( select generate_series as n from generate_series(0,1048575)) select n as seq_number, (n/1024) + ((n%1024)<<10) as rand_number from nu

Re: [GENERAL] How to connect to postgres.app on Mac from PgAdmin

2014-12-20 Thread AlexK987
This worked, thank you! -- View this message in context: http://postgresql.nabble.com/How-to-connect-to-postgres-app-on-Mac-from-PgAdmin-tp5831604p5831609.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list (pgsql-general@postgre

[GENERAL] How to connect to postgres.app on Mac from PgAdmin

2014-12-20 Thread AlexK987
I've installed postgres.app on my Mac. It did not prompt me for any password. I am trying to connect to it via PgAdmin, from the same Mac laptop, providing localhost as hostname, postgres as username, and no password. I am getting "FATAL: role postgres does not exist". Which credentials should