Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3890837BDC2 for ; Fri, 10 Oct 2008 11:40:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18900-03 for ; Fri, 10 Oct 2008 11:40:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id B6E4037C01B for ; Fri, 10 Oct 2008 11:40:13 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-114-228.bk8-dsl.surnet.cl [200.126.114.228]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m9AEhwEr023788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Oct 2008 07:44:01 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 91FF147CB6; Fri, 10 Oct 2008 10:40:03 -0400 (CLT) Date: Fri, 10 Oct 2008 10:40:03 -0400 From: Alvaro Herrera To: Jagadeesh Cc: pgsql-admin@postgresql.org Subject: Re: how to invoke edtor? Message-ID: <20081010144003.GA4194@alvh.no-ip.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 10 Oct 2008 07:44:01 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/88 X-Sequence-Number: 30544 Jagadeesh escribió: > HI, > > how can I invoke editor like vim from postgres? This helps me in > editing large and complex queries. Use \e, and make sure EDITOR is set to the editor of your preference. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.