pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anjul Tyagi <anjul@ibosstech-us.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Server Crash
Date: Wed, 27 Jun 2018 08:51:39 +0000
Message-ID: <eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081> (raw)
In-Reply-To: <emc5980c28-9d53-4310-b7ef-a25d5418ae84@iboss01081>
References: <emc5980c28-9d53-4310-b7ef-a25d5418ae84@iboss01081>

Hi All,

can you please suggest on the issue we are facing?



Regards,

Anjul TYAGI



ü Go Green


------ Original Message ------
From: "Anjul Tyagi" <anjul@ibosstech-us.com>
To: "pgsql-bugs@lists.postgresql.org" <pgsql-bugs@lists.postgresql.org>
Sent: 26-06-2018 18:17:26
Subject: Server Crash

>Hi All,
>
>We have recently deployed couple of new plperl SPROC in our postgres 
>production server and after that server start throwing error. Currently 
>we are using postgres 9.1 and planning to upgrade with PG 10.
>
>But we are not sure if that will cause the same error in PG 10 as well. 
>We really need help.
>
>Error Message:
>
>2018-06-21 13:43:29 EDT [22212]: [4-1] user=cmsuser,db=forte 
>,host=10.10.1.3,port=10.10.1.3(56601),id=5b2bdea5.56c4,line=4DETAIL:  
>The postmaster has commanded this server process to roll back the 
>current transaction and exit, because another server process exited 
>abnormally and possibly corrupted shared memory.
>
>
>
>2018-06-21 13:43:29 EDT [3673]: [5-1] user=cmsuser,db=forte 
>,host=10.10.1.3,port=10.10.1.3(55649),id=5b2bd568.e59,line=5DETAIL:  
>The postmaster has commanded this server process to roll back the 
>current transaction and exit, because another server process exited 
>abnormally and possibly corrupted shared memory.
>
>
>Server Details:
>Linux - Red Hat Enterprise Linux Server release 6.3 (Santiago)
>Postgres -  Postgres 9.1.13
>
>below are the sample SPROC code:
>
>
>CREATE OR REPLACE FUNCTION getauthcode(
>     claim character varying,
>     oflag character varying,
>     pacode character varying,
>     dispos character varying)
>   RETURNS text AS
>$BODY$
>use strict;
>use warnings;
>use SOAP::Lite;
>use JSON;
>
>
>try
>{
>     my $host = `hostname`;
>     my $rv = spi_exec_query("select * from 
>getsprocurl('getauthcode','".$host."')");
>     my $url = $rv->{rows}[0]->{ret_url};
>     elog(NOTICE, 'Host Name  ' . $host . ' URL '. $url );
>
>     my $soap = SOAP::Lite->new();
>     my $service = $soap->service($url);
>     my %params =  ("claim" => $_[0], "oflag" => $_[1], "pacode" => 
>$_[2], "dispos" => $_[3]);
>     my $response = $service->getAuthCode(%params);
>     my $json_array = decode_json($response);
>
>     for my $report ( $json_array) {
>     my $status =  $report->{status}, '\n';
>         if ($status eq 'success')
>         {
>             return $report->{PriorApprovalCode};
>         }
>         else{
>             return $report->{message};
>         }
>     }
>}
>catch Exception with
>{
>     my $ex = shift;
>     return 'SOAPFAULT: ' . date('H:i:s') . ' ' . exception($ex);
>}
>
>$BODY$
>   LANGUAGE plperlu VOLATILE STRICT
>   COST 100;
>
>Appreciate for your help in advance.
>
>Regards,
>
>Anjul TYAGI
>
>
>
>ü Go Green
>
>

view thread (17+ messages)  latest in thread

Message-ID: <eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081>
Permalink:  ../eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081/
Also on:    postgresql.org/message-id/eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081

 · 

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-admin@postgresql.org
  Cc: anjul@ibosstech-us.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Server Crash
  In-Reply-To: <eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081>
  References: <emc5980c28-9d53-4310-b7ef-a25d5418ae84@iboss01081> <eme05f8e39-dcad-4564-91e6-a60f03e37e15@iboss01081>

* 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