[GENERAL] select all rows where any column is NULL

2011-07-26 Thread Nathan Boley
Does anyone have a concise way of doing $SUBJECT? Best, Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] a question about row estimation in postgres

2011-03-20 Thread Nathan Boley
> Following the formula outlined > in http://www.postgresql.org/docs/8.3/static/row-estimation-examples.html > Both gradrate 10 and gradrate 11 would fall in the first bucket. > Shouldn't the row estimation be: > (11 - 8) / (33 - 8) / 10 * 1302 = 15.624 > and > (10 - 8) / (33 - 8) / 10 * 1302 = 10.

Re: [GENERAL] SFPUG: Video from "Statistics and Postgres -- How the Planner Sees Your Data" Now on Vimeo

2009-10-15 Thread Nathan Boley
> > There is reference to slides with some > frequency though, are they available somewhere? > Ya. http://encodestatistics.org/publications/statistics_and_postgres.pdf Is there a better place for this? -Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

Re: [GENERAL] Q: data modeling with inheritance

2009-07-02 Thread Nathan Boley
> >  variant              association                phenotype >  ---              ---                - >  variant_id - variant_id        +--- phenotype_id >  genome_id            phenotype_id -+        short_descr >  strand               origin_id (i.e., who)  

Re: [GENERAL] Streaming PUG meeting: PostgreSQL Genetics!

2009-03-14 Thread Nathan Boley
>> Will there be a saved version of this (SFPUG talk) available for later >> viewing? Don't >> make me choose between steak and beer and postgres. 8( > > Yes!  I'll announce it here when it's available. > Is there any update on this? -Nathan -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] full vacuum really slows down query

2008-06-08 Thread Nathan Boley
> I have a query that takes 2 sec if I run it from a freshly restored dump. > If I run a full vacuum on the database it then takes 30 seconds. What do the two plans look like? Can you post the explains? -Nathan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

Re: [GENERAL] inheritance. more.

2008-05-01 Thread Nathan Boley
Because people can be smarter about the data partitioning. Consider a table of users. Some are active, most are not. The active users account for nearly all of the users table access, but I still (occasionally) want to access info about the inactive users. Partitioning users into active_users and

[GENERAL] Update Perrformance with nested loop vs. merge-join

2006-12-06 Thread Nathan Boley
Hi, I just created a new column on a relatively large table (~ 2 mil rows over 400 mb in tablesize) and am trying to populate it from another much smaller table by using an update query . The purpose of the query to set a bool flag if the user for the action on table1 is the last user, as determi