From: Guyren Howe <guyren@gmail.com>
To: Thomas Munro <thomas.munro@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: pgsql-general@postgresql.org, jay chauhan <jaychauhan.src@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: suchita.dudeja@wipro.com
Cc: himanshu.jayaswal1@wipro.com
Subject: Re: Request for resolution || Support
Date: Wed, 24 Jul 2019 22:52:33 -0700
Message-ID: <9103c79b-38f2-40bf-856a-35184a15189b@Spark> (raw)
In-Reply-To: <CA+13ir32gw0ninA5Z9ksS=Uz82+rHvUG3japx_hXvh_LoVPdkg@mail.gmail.com>
References: <CA+13ir3hcrH0J9KKzMsFcnwmYSAGX0mnyEutyoLeASwseHbCmQ@mail.gmail.com>
<CA+13ir0wdmLiSoz-KMNp2JE3ze7T1bbH6O3n7VbaKH+Z+qcd6A@mail.gmail.com>
<CAKFQuwaYoEwkyO6wUVgnGPB9FR1P6U9g3HG6+dTqD9bDjyoi3w@mail.gmail.com>
<CA+hUKGKUes5WXm4VxvZkoGw8n4K_onNTtfUOfQ4wHnduD5=ZLg@mail.gmail.com>
<CA+13ir32gw0ninA5Z9ksS=Uz82+rHvUG3japx_hXvh_LoVPdkg@mail.gmail.com>
Another option would be an app that is constantly connected to Postgres using LISTEN/NOTIFY.
On Jul 24, 2019, 22:34 -0700, jay chauhan <jaychauhan.src@gmail.com>, wrote:
> 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 PostgreSQL Version.
>
> <<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">>
> 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: 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
> David Response on it : Rewrite your code as instructed
>
> Error-2)
> ERROR: schema "utl_http" does not exist
> LINE 38: L_HTTP_REQUEST UTL_HTTP.REQ;
> ^
> SQL state: 3F000
> Character: 1785
> Thomas response: That's an Oracle thing for doing HTTP requests from PL/SQL. 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>. 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 <thomas.munro@gmail.com> wrote:
> > > On Mon, Jul 22, 2019 at 8:49 AM David G. Johnston
> > > <david.g.johnston@gmail.com> wrote:
> > > > 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
> > >
> > > Yeah, you should use release 11 for a new project.
> > >
> > > https://www.postgresql.org/support/versioning/
> > >
> > > >> Error-2)
> > > >> ERROR: schema "utl_http" does not exist
> > > >
> > > > Insufficient data provided to even guess
> > >
> > > That's an Oracle thing for doing HTTP requests from PL/SQL. 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>. 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
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-bugs@postgresql.org
Cc: guyren@gmail.com, thomas.munro@gmail.com, david.g.johnston@gmail.com, jaychauhan.src@gmail.com, michael@paquier.xyz, suchita.dudeja@wipro.com, himanshu.jayaswal1@wipro.com
Subject: Re: Request for resolution || Support
In-Reply-To: <9103c79b-38f2-40bf-856a-35184a15189b@Spark>
References: <CA+13ir3hcrH0J9KKzMsFcnwmYSAGX0mnyEutyoLeASwseHbCmQ@mail.gmail.com> <CA+13ir0wdmLiSoz-KMNp2JE3ze7T1bbH6O3n7VbaKH+Z+qcd6A@mail.gmail.com> <CAKFQuwaYoEwkyO6wUVgnGPB9FR1P6U9g3HG6+dTqD9bDjyoi3w@mail.gmail.com> <CA+hUKGKUes5WXm4VxvZkoGw8n4K_onNTtfUOfQ4wHnduD5=ZLg@mail.gmail.com> <CA+13ir32gw0ninA5Z9ksS=Uz82+rHvUG3japx_hXvh_LoVPdkg@mail.gmail.com> <9103c79b-38f2-40bf-856a-35184a15189b@Spark>
* 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