Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 059669F9BBF for ; Sat, 22 Sep 2007 20:14:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 56599-08 for ; Sat, 22 Sep 2007 20:14:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by postgresql.org (Postfix) with ESMTP id 7D7159F9BBA for ; Sat, 22 Sep 2007 20:14:16 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so723017ugf for ; Sat, 22 Sep 2007 16:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=d9fojxiEUuYjZUubDq8PJ5T/933/4FM/UXHa4PqAAtY=; b=g+/v6n5ala4bTwp7odrtR3zv3jOupO6VCD4MiHoXurpMelJnLDX7Raw4doSGwYrZiIq/MOA7R4pTNHXwwtXbvKq8xSDtYSCLI6UEXC8p5bcZWRP18ZNLG7Qv+b1ek93KtbuvEEZxa3sB6fTv+W5SWimVMwgptIlQBR8XLKHsQMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m4+Qcj5WKO2lVL3N3q02oqnWj3+JMzBAdjp6Z1XkmepZNzkN5SctDmi9enlq7Qr+zXfGIYMkxVXyQWrXEs09d3siN+/1COSivpjV3ibATamIuKuzwvzSF+b6nN3Lo3YAeW/HEN3MotAIm1u4fc/yzWV4gZo63hzH6xysCZsRO8Y= Received: by 10.67.30.6 with SMTP id h6mr6059604ugj.1190502854703; Sat, 22 Sep 2007 16:14:14 -0700 (PDT) Received: by 10.66.220.7 with HTTP; Sat, 22 Sep 2007 16:14:14 -0700 (PDT) Message-ID: Date: Sat, 22 Sep 2007 18:14:14 -0500 From: "Scott Marlowe" To: "John Mulkerin" Subject: Re: Intermittent Empty return Cc: "Tom Lane" , pgsql-sql@postgresql.org In-Reply-To: <46F59280.7050809@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46F57BBC.8070008@comcast.net> <3838.1190493672@sss.pgh.pa.us> <46F59280.7050809@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/144 X-Sequence-Number: 29357 On 9/22/07, John Mulkerin wrote: > I agree its old. I'm working on the upgrade but first need to verify > and then purge some data. > > I tried with and without a semicolon > > However, with a semicolon results in > > Just tried semicolon again.. First time resulted in results. Second > time resulted in > select * from survey_results; > ERROR: parser: parse error at or near "select" at character 30. > Maybe another reason I need to upgrade? That's because what it's doing it running this: select * from table select * from table; i.e. it's seeing the first one you typed without the semicolon then second one too. You'll notice the prompt looks like this; dbname => select * from table dbname -> select * from table; notice the -> That means there's already something in the buffer. \r resets the buffer. Just try it with ONLY the semicolon and it'll work. and yeah, get to work on that upgrade... :)