Re: Request for resolution || Support - Mailing list pgsql-bugs

From Jaime Casanova
Subject Re: Request for resolution || Support
Date
Msg-id CAJGNTeOdNu5nw2b_01OwpHeg8XvaMBJJucsBvNEQ755PWL6f_g@mail.gmail.com
Whole thread Raw
In response to Re: Request for resolution || Support  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs




El dom., 21 de jul. de 2019 3:48 p. m., David G. Johnston <david.g.johnston@gmail.com> escribió:
Please don’t pick random places to send emails.  This is neither a bug nor a security issue so neither of these lists apply.  The -general list is most appropriate.

On Sunday, July 21, 2019, jay chauhan <jaychauhan.src@gmail.com> wrote:
<<My PostgreSQL version : "PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64-bit">>


Use a newer version
 
Good evening!
I am migrating Oracle DB into PostgreSQL. However I am facing some issue in postgreSQL as listed below. 

Error-1) 
ERROR:  cannot begin/end transactions in PL/pgSQL
HINT:  Use a BEGIN block with an EXCEPTION clause instead.
CONTEXT:  PL/pgSQL function icmsuatnew.eload_commission_payout_active(text,text,text,text,text,text) line 486 at SQL statement
SQL state: 0A000


Rewrite your code as instructed

Actually in postgres 11 you can begin/end transactions inside a plpgsql stored procedure (not in a function)

--
Jaime Casanova
2ndQuadrant
Su diligente equipo de expertos en PostgreSQL

pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Request for resolution || Support
Next
From: PG Bug reporting form
Date:
Subject: BUG #15921: invalid regular expression while parsing hunspell affix