Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7NGX-00076h-No for pgsql-general@arkaria.postgresql.org; Sat, 14 Apr 2018 15:39:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f7NGW-0007eV-7N for pgsql-general@arkaria.postgresql.org; Sat, 14 Apr 2018 15:39:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7NGV-0007eL-VX for pgsql-general@lists.postgresql.org; Sat, 14 Apr 2018 15:39:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f7NGT-0002Mv-0B for pgsql-general@postgresql.org; Sat, 14 Apr 2018 15:38:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3EFcrf6014391; Sat, 14 Apr 2018 11:38:53 -0400 From: Tom Lane To: Bob Jones cc: pgsql-general Subject: Re: cursor "x" does not exist In-reply-to: References: Comments: In-reply-to Bob Jones message dated "Sat, 14 Apr 2018 15:44:17 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14389.1523720333.1@sss.pgh.pa.us> Date: Sat, 14 Apr 2018 11:38:53 -0400 Message-ID: <14390.1523720333@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bob Jones writes: > My apologies if I'm being incredibly stupid here, but I've reviewed > what the docs have to say about naming portals and I still can't see > where I'm going wrong here ? I think you're forgetting to double-quote an upper case identifier. > FETCH ALL IN B; > ERROR: cursor "b" does not exist The cursor is named "B" not "b", but B without quotes folds to the latter. regards, tom lane