Re: [HACKERS] One I've never seen before:

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] One I've never seen before:
Date: 1999-02-07 06:39:18
Message-ID: Pine.BSF.4.05.9902070227140.368-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


quick appendum to my own...

the 'category' field was created with an 'alter table' command, if that
helps any...

even from psql, it comes back:

postgresql=> select category from tools where category = 'projects';
ERROR: RestrictionClauseSelectivity: bad value 163645.593750

If I do it without the where clause, or a where cluase on any other field,
all appears well, its only teh one I created with 'alter table' that is
"screwed"...

Neat...if I rename the table to something else, the problem goes away. If
I rename it to old_tools, it still exists, but if I rename it to software,
the problem disappears...*raised eyebrows*

and the table looks like:

postgresql=> \d tools

Table = tools
+----------------------------------+----------------------------------+-------+
| Field | Type | Length|
+----------------------------------+----------------------------------+-------+
| userid | text | var |
| title | text | var |
| url | text | var |
| platform | text | var |
| app_version | text | var |
| pg_version | text | var |
| contact_name | text | var |
| contact_email | text | var |
| institution | text | var |
| company_url | text | var |
| keywords | text | var |
| description | text | var |
| rundate | datetime | 8 |
| category | text | var |
+----------------------------------+----------------------------------+-------+

On Sun, 7 Feb 1999, The Hermit Hacker wrote:

>
> ERROR: RestrictionClauseSelectivity: bad value 163645.593750
>
> The query is:
>
> SELECT p.first_name, p.last_name, t.title, t.rundate, t.app_version,
> p.email
> FROM sw_password p, tools t
> WHERE p.userid = t.userid
> AND t.category = 'tools'
> ORDER by t.title;
>
> Something wrong with that taht I'm not seeing? :(
>
> Marc G. Fournier
> Systems Administrator @ hub.org
> primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org
>
>

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-02-07 11:44:53 Re: [HACKERS] equal: don't know whether nodes of type 600 are equal
Previous Message The Hermit Hacker 1999-02-07 06:24:34 One I've never seen before: