dbTalk Databases Forums  

BUG #1200: VACUUM ANALYZE bug

comp.databases.postgresql.bugs comp.databases.postgresql.bugs


Discuss BUG #1200: VACUUM ANALYZE bug in the comp.databases.postgresql.bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default BUG #1200: VACUUM ANALYZE bug - 07-26-2004 , 12:35 PM







The following bug has been logged online:

Bug reference: 1200
Logged by: André Otero

Email address: andre (AT) iee (DOT) usp.br

PostgreSQL version: 7.4

Operating system: Debian Linux on Alpha

Description: VACUUM ANALYZE bug

Details:

Before I run the VACUUM ANALYZE command all query that use JOIN command
return the error: ERROR invalid typeLen: 0.
However the data of tables are unbroken.

Example:
create table departaments
( dp-id int,
name varchar(30),
primary key(dp-id) );

create table requests
( rq-id int,
dp-id int references departaments(dp-id),
description varchar(30),
primary key(dp-id) );

insert into departaments values (1,'Informatica');
insert into departaments values (2,'Recurcos Humanos');
insert into departaments values (3,'Compras');
insert into departaments values (4,'Marketing');
insert into departaments values (5,'Diretoria');
insert into departaments values (6,'Ensino');

insert into requests values (1,1,'nothing');
insert into requests values (2,1,'nothing');
insert into requests values (3,2,'nothing');
insert into requests values (4,3'nothing');
insert into requests values (5,4,'nothing');
insert into requests values (6,4'nothing');

select rq-id,name from requests left join departaments on requests.dp-id =
departaments.dp.id;

this result in:
rq-id | name
1 | Informatica
2 | Informatica
3 | Recursos Humanos
4 | Compras
5 | Marketing
6 | Marketing

now execute VACUUM ANALYZE.... the query dont work...


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: BUG #1200: VACUUM ANALYZE bug - 07-26-2004 , 01:19 PM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
Before I run the VACUUM ANALYZE command all query that use JOIN command
return the error: ERROR invalid typeLen: 0.
You seem to have a rather badly broken copy of Postgres :-( Does it
pass the regression tests? (I'd bet not.)

PG 7.4 is known to run on Linux/Alpha, and since the report in the
"supported platforms" table is from someone at debian.org, I would
imagine that test was specifically on Debian. So it ought to work
for you. Perhaps you got a corrupted download, or used a buggy
compiler to build it, or some such.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.