Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4136FBBDD53 for ; Fri, 18 Nov 2011 11:20:36 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RRQEy-0007YD-8n for pgsql-admin@postgresql.org; Fri, 18 Nov 2011 15:20:36 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAIFKJ2u016255; Fri, 18 Nov 2011 10:20:19 -0500 (EST) To: Silvio Brandani cc: pgsql-admin@postgresql.org Subject: Re: database not using indexes, yet In-reply-to: <4EC673DE.40201@tech.sdb.it> References: <4EBA9AAC.9030900@tech.sdb.it> <4EC66726.6060800@tech.sdb.it> <15583.1321627876@sss.pgh.pa.us> <4EC673DE.40201@tech.sdb.it> Comments: In-reply-to Silvio Brandani message dated "Fri, 18 Nov 2011 16:03:58 +0100" Date: Fri, 18 Nov 2011 10:20:19 -0500 Message-ID: <16254.1321629619@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 201111/102 X-Sequence-Number: 38696 Silvio Brandani writes: > Il 18/11/2011 15.51, Tom Lane ha scritto: >> There's nothing here to suggest that this query shouldn't use an index, >> so the problem is in something you didn't show us. Maybe you have >> enable_indexscan turned off, or maybe that index isn't really on that >> table, or something else. > this is not the case, to be sure I have recreated the index and still > not work. moreover the copy of the table with the same ttpe of index is > using it. Well, the rest of us can't see what you're doing, but I think this is highly likely to be user error. Have you got more than one table named aida_references? regards, tom lane