From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bob Jones <r.a.n.d.o.m.d.e.v.4+postgres@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: cursor "x" does not exist
Date: Sat, 14 Apr 2018 11:38:53 -0400
Message-ID: <14390.1523720333@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+HuS5F_anOtn+jJjF1VPuWX_pkOiN_FC2vPDDgkJhFs-s8CZQ@mail.gmail.com>
References: <CA+HuS5F_anOtn+jJjF1VPuWX_pkOiN_FC2vPDDgkJhFs-s8CZQ@mail.gmail.com>
Bob Jones <r.a.n.d.o.m.d.e.v.4+postgres@gmail.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, r.a.n.d.o.m.d.e.v.4+postgres@gmail.com
Subject: Re: cursor "x" does not exist
In-Reply-To: <14390.1523720333@sss.pgh.pa.us>
References: <CA+HuS5F_anOtn+jJjF1VPuWX_pkOiN_FC2vPDDgkJhFs-s8CZQ@mail.gmail.com> <14390.1523720333@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox