pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
To: pgsql-general list <pgsql-general@lists.postgresql.org>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Subject: Re: PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements
Date: Sun, 16 Apr 2023 11:39:15 -0700
Message-ID: <3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com> (raw)
In-Reply-To: <F26A566A-821F-43AC-8D67-9BEF5DB958BC@yugabyte.com>
References: <42DB8C32-AC45-4735-8A47-4D7D4DB93E2E@yugabyte.com>
	<CAKFQuwaXMwZGdBZAEW8qusOXXJn=8ROOnrF_7-iYY2+tVC-fkg@mail.gmail.com>
	<C08CD8DD-1B09-433D-A90C-32F4A09615C3@yugabyte.com>
	<F26A566A-821F-43AC-8D67-9BEF5DB958BC@yugabyte.com>

On 4/16/23 11:02, Bryn Llewellyn wrote:> statement fails but doing this 
using PL/pgSQL succeeds.
> 
> What's going on under the covers?

Pretty sure:

https://www.postgresql.org/docs/current/spi.html

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (3+ messages)  latest in thread

Message-ID: <3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com>
Permalink:  ../3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com/
Also on:    postgresql.org/message-id/3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, bryn@yugabyte.com, david.g.johnston@gmail.com, peter.eisentraut@2ndquadrant.com
  Subject: Re: PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements
  In-Reply-To: <3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com>
  References: <42DB8C32-AC45-4735-8A47-4D7D4DB93E2E@yugabyte.com> <CAKFQuwaXMwZGdBZAEW8qusOXXJn=8ROOnrF_7-iYY2+tVC-fkg@mail.gmail.com> <C08CD8DD-1B09-433D-A90C-32F4A09615C3@yugabyte.com> <F26A566A-821F-43AC-8D67-9BEF5DB958BC@yugabyte.com> <3d1058fe-ac68-fbbe-e79e-d07d97d05638@aklaver.com>

* 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