Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqWgN-0003rd-I3 for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2019 05:52:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hqWgM-0007ej-Db for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Jul 2019 05:52:50 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqWgM-0007ec-65 for pgsql-bugs@lists.postgresql.org; Thu, 25 Jul 2019 05:52:50 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hqWgJ-0005AV-8q for pgsql-bugs@lists.postgresql.org; Thu, 25 Jul 2019 05:52:49 +0000 Received: by mail-pg1-x52c.google.com with SMTP id f20so13195868pgj.0 for ; Wed, 24 Jul 2019 22:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=VJj/6z8V/fxx/DrUbs+7URT+GBqxpiqvJV+pYMB39aI=; b=giujSYWs9owPPcIEOxw99H7smx+D3WHcSkyLyZTWqLCEeWKakIVEdoWSaiYBBZuP2h jFvHyJV2sO4ejtLVz7XslnwkGZwIOooR/YAsC0OkpRC4W2t7tLfQfyUYs4MBCrDmWx0T RdZvsK3Y614aMHw8Mcuhp8uQJd6MwOmRyXqrSMn33ZfnpB+ah+2tSX0/8TA9XgtNZuNa 6GBSDkSed1pa2f4mzSR9bFW1LUVLrpq3O+wPTZSAh/zHYyHQAZFScVvoo47jlNw6Vn22 SkHev/KbYrs6aaRMbk4ZLUN1C6OQCCe3ldph17JOfn6ib8y6E7MYUFepGyH2NUaw7tdy Z5mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version; bh=VJj/6z8V/fxx/DrUbs+7URT+GBqxpiqvJV+pYMB39aI=; b=UhWNRAUh9S5sv0R4UB0NEaj9yLmos157Y0SLTmzLUSzDpeXSW1I9f7CbefAvDNK6Mx fsh7/SrexO6Ap2xYDflZcTNzsybNOoZZsxEBBuSvDOG7VmV3ZYaRrihhyXBHGDrlNr9k ZdhRXwnLsfXmFUaz5NvAN0Gyh4+k1+EzgC5Yyjg4NsU9o5SjlngoSGqNzIdhV2DrSwHV bqggmvu7kzmou53RcwnYKLlLHA5qXqTqMN5cXnSuK4FlPPW4pYUHmUus3DpSGa/nB707 CW49tU2TimRO/2La84xxXwYJAuJFy8jE0xkMYBFIm2kUwAL6xTppYnmbdXtyJAfhGvyO N1XA== X-Gm-Message-State: APjAAAVhmNzM7nnTS4yVkYBRvH9urqPtfK01Kj0KsRuDQlDzSaVZY7+M lmWq2zZfozUdTx5XI/RqKsA= X-Google-Smtp-Source: APXvYqzGQLQjZxhzOjnb+ea8OTqe/Rbw6lfNNdQw5+7q3oWiOXCi3VklzrokLiO2bbmgUyUzjmASAg== X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr92648864pja.104.1564033965223; Wed, 24 Jul 2019 22:52:45 -0700 (PDT) Received: from [2600:8801:8800:16e:982a:3b02:300::] ([2600:8801:8800:16e::12]) by smtp.gmail.com with ESMTPSA id r27sm53628342pgn.25.2019.07.24.22.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 22:52:44 -0700 (PDT) Date: Wed, 24 Jul 2019 22:52:33 -0700 From: Guyren Howe To: Thomas Munro , "David G. Johnston" , pgsql-general@postgresql.org, jay chauhan Cc: "=?utf-8?Q?pgsql-bugs=40lists.postgresql.org?=" , Michael Paquier , suchita.dudeja@wipro.com, himanshu.jayaswal1@wipro.com Message-ID: <9103c79b-38f2-40bf-856a-35184a15189b@Spark> In-Reply-To: References: Subject: Re: Request for resolution || Support X-Readdle-Message-ID: 9103c79b-38f2-40bf-856a-35184a15189b@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5d3943aa_2eb141f2_1493" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5d3943aa_2eb141f2_1493 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another option would be an app that is constantly connected to Postgres u= sing LISTEN/NOTI=46Y. On Jul 24, 2019, 22:34 -0700, jay chauhan , w= rote: > Hi Thomas, David/Team, > > Thanks you for your response. However we need your confirmation whether= my Error/issue as mentioned below will be resolved if we upgrade our Pos= tgreSQL Version. > > <>= > David response: Use a newer version > Tomas response: Yeah, you should use release 11 for a new project. > > My Issue while migrating procedure/function from Oracle to PostgreSQL: > Error-1) > ERROR: =C2=A0cannot begin/end transactions in PL/pgSQL > HINT: =C2=A0Use a BEGIN block with an EXCEPTION clause instead. > CONTEXT: =C2=A0PL/pgSQL function icmsuatnew.eload=5Fcommission=5Fpayout= =5Factive(text,text,text,text,text,text) line 486 at SQL statement > SQL state: 0A000 > David Response on it :=C2=A0Rewrite your code as instructed > > Error-2) > ERROR: =C2=A0schema =22utl=5Fhttp=22 does not exist > LINE 38: =C2=A0 =C2=A0 L=5FHTTP=5FREQUEST UTL=5FHTTP.REQ; > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =5E > SQL state: 3=46000 > Character: 1785 > Thomas response:=C2=A0That's an Oracle thing for doing HTTP requests fr= om PL/SQL.=C2=A0 To do that from plpgsql you could try an extension like = this one: > https://github.com/pramsey/pgsql-http > Or you could write your own function in Python or favourite PL>.=C2=A0 That's what I'd probably do. > https://www.postgresql.org/docs/11/plpython-funcs.html > > > Need your urgent help. > > Regards, > Jay Chauhan > +918802766181 > > > > On Mon, Jul 22, 2019 at 3:53 AM Thomas Munro wrote: > > > On Mon, Jul 22, 2019 at 8:49 AM David G. Johnston > > > wrote: > > > > On Sunday, July 21, 2019, jay chauhan wrote: > > > >> <> > > > > > > > > Use a newer version > > > > > > Yeah, you should use release 11 for a new project. > > > > > > https://www.postgresql.org/support/versioning/ > > > > > > >> Error-2) > > > >> ERROR:=C2=A0 schema =22utl=5Fhttp=22 does not exist > > > > > > > > Insufficient data provided to even guess > > > > > > That's an Oracle thing for doing HTTP requests from PL/SQL.=C2=A0 T= o do > > > that from plpgsql you could try an extension like this one: > > > > > > https://github.com/pramsey/pgsql-http > > > > > > Or you could write your own function in Python or > > favourite PL>.=C2=A0 That's what I'd probably do. > > > > > > https://www.postgresql.org/docs/11/plpython-funcs.html > > > > > > Google should help you find examples of people using plpython to > > > access the various Python HTTP modules. > > > > > > -- > > > Thomas Munro > > > https://enterprisedb.com --5d3943aa_2eb141f2_1493 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Another option would be an app that is constantly c= onnected to Postgres using LISTEN/NOTI=46Y.
On Jul 24, 2019, 22:34 -0700, jay c= hauhan <jaychauhan.src=40gmail.com>, wrote:
Hi Thomas, David/Team,

Thanks you for your response. However we need your confirmation whet= her my Error/issue as mentioned below will be resolved if we upgrade our = PostgreSQL Version.

<<My PostgreSQL version : =22PostgreSQL 9.3.4 on x86=5F64-unkn= own-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64= -bit=22>>
David response: Use a newer version
Tomas response: Yeah, you should use release 11 for a new pro= ject.&=23160;&=23160;

My Issue while migrating procedure/function from Oracle to PostgreSQ= L:
Error-1)&=23160;=
ERROR: &=23160;c= annot begin/end transactions in PL/pgSQL
HINT: &=23160;Use a BEGIN block with an EXCEPTION clause instead.
CONTEXT: &=23160;PL/pgSQL function icmsuatnew.eload=5Fcommission=5Fpayout= =5Factive(text,text,text,text,text,text) line 486 at SQL statement
SQL state: 0A000

David Respo= nse on it :&=23160;Rewrite your code as instructed

Error-2)<= /div>
ERROR: &=23160;s= chema =22utl=5Fhttp=22 does not exist
LINE 38: &=23160; &=23160; L=5FHTTP=5FREQUEST UTL=5FHTTP.REQ;
&=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &=23160; &= =23160; &=23160; &=23160; &=23160; &=23160; &=23160; =5E
SQL state: 3=46000
Character: 1785
Thomas response:&=23160;That's an Oracle thing for doing HTTP= requests from PL/SQL.&=23160; To do that from plpgsql you could try an e= xtension like this one:
https://github.com/pramsey/pgsql-http
Or you could write your own function in Python or <insert your
favourite PL>.&=23160; That's what I'd probably do.
https://www.postgresql.org/d= ocs/11/plpython-funcs.html


Need your urgent help.

Regards,
Jay Chauhan
+918802766181


On Mon, Jul 22, 2019 at 3= :53 AM Thomas Munro <t= homas.munro=40gmail.com> wrote:
On Mon= , Jul 22, 2019 at 8:49 AM David G. Johnston
<david.g.johnston=40gmail.com> wrote:
> On Sunday, July 21, 2019, jay chauhan <jaychauhan.src=40gmail.co= m> wrote:
>> <<My PostgreSQL version : =22PostgreSQL 9.3.4 on x86=5F64-= unknown-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)= , 64-bit=22>>
>
> Use a newer version

Yeah, you should use release 11 for a new project.

https://www.postgresql.org/support/v= ersioning/

>> Error-2)
>> ERROR:&=23160; schema =22utl=5Fhttp=22 does not exist
>
> Insufficient data provided to even guess

That's an Oracle thing for doing HTTP requests from PL/SQL.&=23160; To do=
that from plpgsql you could try an extension like this one:

https://github.com/pramsey/pgsql-http

Or you could write your own function in Python or <insert your
favourite PL>.&=23160; That's what I'd probably do.

https://www.postgresql.org/d= ocs/11/plpython-funcs.html

Google should help you find examples of people using plpython to
access the various Python HTTP modules.

--
Thomas Munro
https://enterprisedb.com
--5d3943aa_2eb141f2_1493--