Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 876207E4442 for ; Fri, 22 Jun 2012 12:10:13 -0300 (ADT) Received: from mail-qc0-f174.google.com ([209.85.216.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Si5NU-0003RA-Io for pgsql-bugs@postgresql.org; Fri, 22 Jun 2012 15:02:28 +0000 Received: by qcro28 with SMTP id o28so1245622qcr.33 for ; Fri, 22 Jun 2012 08:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=n6mv7SCBGX1beKuxYribPPFhJqML6BxYrYMSgjzh4cA=; b=OFOIDK1PDke74D3HOh1a1cd8cAJki+3H+JePGLQ4veJ0366eIHgexdVZQkdpJEQjWm vKrAVtSa40ho3Et3NXyuuN7t0lHSO6//JnyCuXBcTJFAe43nEwfYxON/miF4BT2aGrMm ZJDEd41OeMxTpbega4McfEsl7oA7zUH/8y8+j+ODmFBG+8/zN98H3E4kvumgcltjQSGe 8OSxVFIaVU33R9lNg0ad7dHcG0aCBnn/3pYpt7othDVmP5sS6C0KG4sGGHB+yeKnU6kt zu/T/SmqaeZUfmTX8LnSZC/va55zSs2/3JVhR6nELLgWsXjk/y2OaTaXI93v5WUWCexS 3ngQ== Received: by 10.224.205.194 with SMTP id fr2mr6796422qab.66.1340377335807; Fri, 22 Jun 2012 08:02:15 -0700 (PDT) Received: from llserver.lakeliving.com (ool-18bbd2c6.static.optonline.net. [24.187.210.198]) by mx.google.com with ESMTPS id j12sm49836078qak.15.2012.06.22.08.02.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 08:02:14 -0700 (PDT) Date: Fri, 22 Jun 2012 11:02:11 -0400 From: Ryan Kelly To: alokrawat0212@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6702: SELECT Query on INDEX Message-ID: <20120622150211.GA16675@llserver.lakeliving.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.3 (-) X-Archive-Number: 201206/195 X-Sequence-Number: 33422 On Fri, Jun 22, 2012 at 01:19:50AM +0000, alokrawat0212@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 6702 > Logged by: Alok Rawat > Email address: alokrawat0212@gmail.com > PostgreSQL version: 9.1.0 > Operating system: WIN 7 > Description: > > Hello all, > > I created a Index in postgres.Now i want to fire select query in this Index > and check data. This is not a bug. For general questions regarding PostgreSQL, please use the pgsql-general mailing list. > Please tell me how to perform this??? PostgreSQL will automatically use your index when querying the table that has that index, when appropriate. One does not query an index directly. You might want to understand how to use EXPLAIN to see if your index is being utilized. See the documentation at: http://www.postgresql.org/docs/9.1/static/indexes.html http://www.postgresql.org/docs/9.1/static/using-explain.html > > Thanks in advance, > > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs -Ryan Kelly