dbTalk Databases Forums  

Re: [BUGS] BUG #1681: Selection problem

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #1681: Selection problem in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] BUG #1681: Selection problem - 05-26-2005 , 10:32 AM






On Thu, May 26, 2005 at 02:50:44PM +0100, fremaux wrote:
Quote:
PostgreSQL version: 7.2.2
PostgreSQL 7.2.2 is almost three years old -- consider upgrading
to 7.2.8, or better yet, 8.0.3.

Quote:
SELECT list.group_artifact_id, list.name
FROM artifact_group_list list
WHERE (list.group_artifact_id=167)

returns 2 lines where the first list.group_artifact_id equals "165". The
problem is that the only lines that have to be returned are the ones with
list.group_artifact_id=167
Could you post the query results and the query's EXPLAIN ANALYZE
output? Do you have an index on group_artifact_id? If so, and if
EXPLAIN ANALYZE shows that the query uses the index, what happens
if you set enable_indexscan to off? What type is group_artifact_id?
How often do you vacuum, analyze, and/or reindex the table?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
Michael Fuhr
 
Posts: n/a

Default Re: [BUGS] BUG #1681: Selection problem - 05-27-2005 , 10:17 AM






[Please copy the mailing list on replies so others can participate
in and learn from the discussion.]

On Fri, May 27, 2005 at 10:08:20AM +0200, FREMAUX Benjamin SOFRECOM wrote:
Quote:
I have effectively an index (PK) on list.group_artifact_id. I solved the
problem with an index rebuild.
A reindex might have provided an immediate fix, but it probably
didn't solve the problem; it might happen again. I don't know if
the problem still exists in later releases in the 7.2 branch, but
in any case I'd recommend using something newer than 7.2.2. A
number of bugs have been fixed since then; see the Release Notes
for details.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
FREMAUX Benjamin SOFRECOM
 
Posts: n/a

Default Re: [BUGS] BUG #1681: Selection problem - 05-31-2005 , 09:56 AM



This is a multi-part message in MIME format.
--------------090302020705060204060707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thank you

Michael Fuhr a écrit :

Quote:
[Please copy the mailing list on replies so others can participate
in and learn from the discussion.]

On Fri, May 27, 2005 at 10:08:20AM +0200, FREMAUX Benjamin SOFRECOM wrote:


I have effectively an index (PK) on list.group_artifact_id. I solved the
problem with an index rebuild.



A reindex might have provided an immediate fix, but it probably
didn't solve the problem; it might happen again. I don't know if
the problem still exists in later releases in the 7.2 branch, but
in any case I'd recommend using something newer than 7.2.2. A
number of bugs have been fixed since then; see the Release Notes
for details.




--------------090302020705060204060707
Content-Type: text/x-vcard; charset=utf-8;
name="benjamin.fremaux.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="benjamin.fremaux.vcf"

begin:vcard
fn:Benjamin FREMAUX
n:FREMAUX;Benjamin
email;internet:benjamin.fremaux (AT) sofrecom (DOT) com
tel;work:01-43-98-58-84
version:2.1
end:vcard


--------------090302020705060204060707
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

--------------090302020705060204060707--


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 - 2012, Jelsoft Enterprises Ltd.