Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CC41E9FA186 for ; Thu, 30 Nov 2006 14:37:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 73051-01 for ; Thu, 30 Nov 2006 14:36:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 714C99FA170 for ; Thu, 30 Nov 2006 14:36:54 -0400 (AST) Received: from alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kAUIaroI012054; Thu, 30 Nov 2006 10:36:53 -0800 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 14354C2D33D; Thu, 30 Nov 2006 15:36:50 -0300 (CLST) Date: Thu, 30 Nov 2006 15:36:50 -0300 From: Alvaro Herrera To: Ezequias Rodrigues da Rocha Cc: pgsql-sql@postgresql.org Subject: Re: Select (1-3) Message-ID: <20061130183649.GF19218@alvh.no-ip.org> Mail-Followup-To: Ezequias Rodrigues da Rocha , pgsql-sql@postgresql.org References: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55c095e90611301030t6b380e64rc3b614acd5759297@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 30 Nov 2006 10:36:53 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/301 X-Sequence-Number: 26953 Ezequias Rodrigues da Rocha wrote: > Hi list, > > It is possible to make a selection like > > Select (list 1 to 1000); Sure, use the generate_series() function. select * from generate_series(1, 1000); -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support