pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Problem close curser after rollback
Date: Wed, 30 Sep 2020 16:14:59 +0200
Message-ID: <20200930141459.GB13560@r314251-amd64> (raw)
In-Reply-To: <DS7PR06MB68850E9EB5C735140A5CC5D3FF330@DS7PR06MB6885.namprd06.prod.outlook.com>
References: <DS7PR06MB6885FE41D39C4A2779CF13A7FF330@DS7PR06MB6885.namprd06.prod.outlook.com>
	<DM6PR06MB6169D90391183C6AA56376C4EA330@DM6PR06MB6169.namprd06.prod.outlook.com>
	<DS7PR06MB68850E9EB5C735140A5CC5D3FF330@DS7PR06MB6885.namprd06.prod.outlook.com>

El día miércoles, septiembre 30, 2020 a las 01:32:41p. m. +0000, Wiltsch,Sigrid escribió:

>  
> Hi,  
> 
> we use the following statements in our applications, as described on the site: 
>  
> https://www.postgresql.org/docs/11/ecpg-commands.html#ECPG-TRANSACTIONS
>  
> EXEC SQL PREPARE stmt1 FROM "SELECT oid,datname FROM pg_database WHERE oid > ?";
> EXEC SQL DECLARE foo_bar CURSOR FOR stmt1;
>  
> ...

I forgot to mention that the problem is with PostgreSQL 11.4 on SuSE
Linux Enterprise. If the problem is not clear, we could rewrite this as
a ten-liner in ESQL/C to reproduce it.

The OP (Sigrid) and me we're working in the same team.

Thanks

	matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin)
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)





view thread (8+ messages)  latest in thread

Message-ID: <20200930141459.GB13560@r314251-amd64>
Permalink:  ../20200930141459.GB13560@r314251-amd64/
Also on:    postgresql.org/message-id/20200930141459.GB13560@r314251-amd64

 · 

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: guru@unixarea.de
  Subject: Re: Problem close curser after rollback
  In-Reply-To: <20200930141459.GB13560@r314251-amd64>
  References: <DS7PR06MB6885FE41D39C4A2779CF13A7FF330@DS7PR06MB6885.namprd06.prod.outlook.com> <DM6PR06MB6169D90391183C6AA56376C4EA330@DM6PR06MB6169.namprd06.prod.outlook.com> <DS7PR06MB68850E9EB5C735140A5CC5D3FF330@DS7PR06MB6885.namprd06.prod.outlook.com> <20200930141459.GB13560@r314251-amd64>

* 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