pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed7.0.3 BUG
5+ messages / 4 participants
[nested] [flat]
* 7.0.3 BUG
@ 2000-11-24 09:49 pgsql-sql <pgsql-sql@fc.emc.com.ph>
2000-11-24 17:36 ` Re: 7.0.3 BUG Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: pgsql-sql @ 2000-11-24 09:49 UTC (permalink / raw)
To: pgsql-sql
SELECT is returning bogus data.
migrate=# select version();
version
---------------------------------------------------------------
PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc 2.95.3
(1 row)
migrate=# select userid from users where userid = 'reynan@yahoo.com';
userid
---------------------
reynan@yahoo.com
admin
(2 rows)
migrate=# \d users
Table "users"
Attribute | Type | Modifier
------------------+--------------+--------------------------------------------------------
userrefkey | integer | not null default
nextval('users_userrefkey_seq'::text)
userid | varchar(128) | not null
password1 | char(20) | not null
password2 | char(50) |
type | char(10) | not null
partneremail | varchar(128) |
adminlastname | char(40) | not null
adminfirstname | char(40) | not null
adminaddress1 | char(80) | not null
adminaddress2 | char(80) |
admincity | char(80) | not null
adminstateprov | char(40) |
admincountrycode | char(2) | not null
adminpostalcode | char(10) |
adminphone | char(20) |
adminfax | char(20) |
checkpayableto | char(80) | not null
createdate | timestamp | not null default now()
lastaccessdate | timestamp |
lastmodifieddate | timestamp |
Indices: users_pkey,
users_userid_key
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: 7.0.3 BUG
2000-11-24 09:49 7.0.3 BUG pgsql-sql <pgsql-sql@fc.emc.com.ph>
@ 2000-11-24 17:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-11-24 23:51 ` Re: 7.0.3 BUG tjk@tksoft.com <tjk@tksoft.com>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2000-11-24 17:36 UTC (permalink / raw)
To: pgsql-sql <pgsql-sql@fc.emc.com.ph>; +Cc: pgsql-sql
"pgsql-sql" <pgsql-sql@fc.emc.com.ph> writes:
> migrate=# select userid from users where userid = 'reynan@yahoo.com';
> userid
> ---------------------
> reynan@yahoo.com
> admin
> (2 rows)
That's a tad, um, startling :-(
However, you haven't given us nearly enough information to have a shot
at figuring out what's going on.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: 7.0.3 BUG
2000-11-24 09:49 7.0.3 BUG pgsql-sql <pgsql-sql@fc.emc.com.ph>
2000-11-24 17:36 ` Re: 7.0.3 BUG Tom Lane <tgl@sss.pgh.pa.us>
@ 2000-11-24 23:51 ` tjk@tksoft.com <tjk@tksoft.com>
2000-11-24 23:58 ` Re: 7.0.3 BUG Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: tjk@tksoft.com @ 2000-11-24 23:51 UTC (permalink / raw)
To: tgl@sss.pgh.pa.us; +Cc: pgsql-sql@fc.emc.com.ph; pgsql-sql
Just a wild guess, but I would imagine
a corrupt (old) index on the userid field would
cause this kind of behavior.
You could test this by dropping the index and
then rebuilding it.
Troy
>
> "pgsql-sql" <pgsql-sql@fc.emc.com.ph> writes:
> > migrate=# select userid from users where userid = 'reynan@yahoo.com';
> > userid
> > ---------------------
> > reynan@yahoo.com
> > admin
> > (2 rows)
>
> That's a tad, um, startling :-(
>
> However, you haven't given us nearly enough information to have a shot
> at figuring out what's going on.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: 7.0.3 BUG
2000-11-24 09:49 7.0.3 BUG pgsql-sql <pgsql-sql@fc.emc.com.ph>
2000-11-24 17:36 ` Re: 7.0.3 BUG Tom Lane <tgl@sss.pgh.pa.us>
2000-11-24 23:51 ` Re: 7.0.3 BUG tjk@tksoft.com <tjk@tksoft.com>
@ 2000-11-24 23:58 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Tom Lane @ 2000-11-24 23:58 UTC (permalink / raw)
To: tjk@tksoft.com <tjk@tksoft.com>; +Cc: pgsql-sql@fc.emc.com.ph; pgsql-sql
"tjk@tksoft.com" <tjk@tksoft.com> writes:
> Just a wild guess, but I would imagine
> a corrupt (old) index on the userid field would
> cause this kind of behavior.
A corrupt index might be a contributing factor, but it doesn't seem like
it could be the only one. From what I know of the index routines, an
entry should not be returned unless it is confirmed to pass the
indexqual condition. Corrupt indexes can lead to missing output
(because tuples that should match never get visited) but they shouldn't
lead to outputting tuples that don't match.
In any case, we don't even know whether this query used an indexscan...
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: 7.0.3 BUG
@ 2000-11-27 08:16 Thomas Lockhart <lockhart@alumni.caltech.edu>
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Lockhart @ 2000-11-27 08:16 UTC (permalink / raw)
To: pgsql-sql <pgsql-sql@fc.emc.com.ph>; +Cc: pgsql-sql; tgl@sss.pgh.pa.us
> >> ERROR: copy: line 3910, Bad timestamp external representation
> >> '2000-01-05 00:00:60.00+08'
> >> Weird because those timestamps were generated by default now().
...
> Is there a work-around to this aside from manually changing the dump file?
> Distribution Version: Linux Mandrake release 7.2 (Odyssey) for
> i586
> It was shipped with Mandrake-Linux 7.2
> >> migrate=# select version();
> >> version
> >> ---------------------------------------------------------------
> >> PostgreSQL 7.0.2 on i686-pc-linux-gnu, compiled by gcc 2.95.3
...
> We can be sure that the compiler is relatively bug free because it was
> used to recompile the entire Linux distribution...
Ah ha (or rather, ha ha ha)! I'd suggest using the RPMs posted on the
postgresql.org ftp site, which include a sample .rpmrc file which fixes
disasterous bugs in Mandrake's default compiler settings for building
RPMs. Specifically, Mandrake sets the -ffast-math flag, which the gcc
folks warn is not compatible with -On optimizations. When I build RPMs I
kill the fast-math option, and the rounding troubles go away.
The rounding trouble does not show up on other platforms or Linux
distros because no one else ignores the gcc recommendations to this
extent :(
- Thomas
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2000-11-27 08:16 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-24 09:49 7.0.3 BUG pgsql-sql <pgsql-sql@fc.emc.com.ph>
2000-11-24 17:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-11-24 23:51 ` tjk@tksoft.com <tjk@tksoft.com>
2000-11-24 23:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-11-27 08:16 Re: 7.0.3 BUG Thomas Lockhart <lockhart@alumni.caltech.edu>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox