Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mByzc-00032u-Tw for pgsql-admin@arkaria.postgresql.org; Fri, 06 Aug 2021 12:30:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mByzb-0006lQ-Tg for pgsql-admin@arkaria.postgresql.org; Fri, 06 Aug 2021 12:30:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mByzb-0006lE-IJ for pgsql-admin@lists.postgresql.org; Fri, 06 Aug 2021 12:30:27 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mByzZ-0004DM-9y for pgsql-admin@lists.postgresql.org; Fri, 06 Aug 2021 12:30:26 +0000 Received: by mail-lj1-x241.google.com with SMTP id n6so11661798ljp.9 for ; Fri, 06 Aug 2021 05:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HSONhSL7sNNWqFJFqFZySrGWxT/ThmFQXz1QzD3gloc=; b=RZTPH4SaFq6gjfdbEF4Tjm1xXEPpRP7yA1gAtLeSELLgiOiRS0Fn8p5ewVtGAd6b+K sHuPH2YTV3yM5PdDc4Ao+xek8F/VLu6iWKU7IhCHQTqvvEVL5CyisubSL6sjL3PnrWjW YkbBe3Z4IGne1XFmfoa8i30mlzUJzdpm7MKSDxKjAQska37dP6gE/mbacRVz/4ef9CsD zjyeOFpHPPlHmj0MPvHTArK/wQsiTQVfbxCJ6TxfMqTCiRLz0FBQEnzqoVeTdwbvZrZx olb15KjzQXYIfMwJTZsKe/vrtqEOHcuy5mmSipOpalLOF+7UrjTaKB8WcR0CcfoA4fjI UxXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HSONhSL7sNNWqFJFqFZySrGWxT/ThmFQXz1QzD3gloc=; b=kr9fMqZkWJw4hOsXFbrk2xc3Pg36wH7CSsdNbnrLDoWxXaLMExsN2iuzZ6DqYC9Ws3 9GWv9Fbex/z33xhLYA97rw8q81+cfuk6q3+S0pnBXLrpDaUpBjpQJJ5vTzsTlJBQiaN5 YuDnP2tnDvSr3rx5kEPfGvFjssmEUiGge2wGC0KTqTe8UWT+J86iIN4VWYeLlJhcBIs9 fqXBhF8s844jewDvicTJVc/uJ+AHXPxJCoqB9eWGwdsg6UDhzM4BEPdUjHv+RW0f9j5g dk2ckaoZLkJYy2XQ7z6MxDP/4lSWYcyc9Fb0CloAXN6Bc6khA+Tb1j7oa02PaKD08290 HcVQ== X-Gm-Message-State: AOAM5311bY3QK8JoH3z3hR6LqscDfIVnyd4XwuIesDdUliFhjbufmcjR YEA1KW4OPNInpdDN/uRUti7TA+L7kyVaGACwusA= X-Google-Smtp-Source: ABdhPJxJL+uJvbFXI22DETKACjgmnGkjUKoUV9w+1fhL5LweAbDlkRCY9TpaRV1/Dq13RM6mEsOsZ04IT39NsHxtuLw= X-Received: by 2002:a2e:a288:: with SMTP id k8mr6323837lja.315.1628253023146; Fri, 06 Aug 2021 05:30:23 -0700 (PDT) MIME-Version: 1.0 References: <1988438991.782818247.1628252572604.JavaMail.root@zimbra82-e14.priv.proxad.net> In-Reply-To: <1988438991.782818247.1628252572604.JavaMail.root@zimbra82-e14.priv.proxad.net> From: Vijaykumar Jain Date: Fri, 6 Aug 2021 18:00:12 +0530 Message-ID: Subject: Re: Oracle error log table equivalent in postgresql To: 066ce286@free.fr Cc: Mukesh Rajpurohit , Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000000c9a2505c8e333d7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000c9a2505c8e333d7 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 6, 2021, 5:53 PM <066ce286@free.fr> wrote: > > Hi all, > > I am porting oracle procedures into postgresql code and some oracle > > procedure contain error log table and save exception code. I could > > not find any equivalent of it in postgresql. > > > > > > Please help if any pointer or lead to its solution. > If I understand correctly, you want to log exceptions to a table, or assume it is logged to some system table. I am not sure if there is inbuilt setup that logs the exceptions or any messages to some table. Everything gets logged to logfile based on how logging is configured. There are ways where you can enable csv logging to file and use file_fdw to make it queryable via sql query. https://www.postgresql.org/docs/current/file-fdw.html --0000000000000c9a2505c8e333d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Aug 6, 2021, 5:53 PM <066ce286@fr= ee.fr> wrote:
> Hi all, > I am porting oracle procedures into postgresql code and some oracle > procedure contain error log table and save exception code. I could
> not find any equivalent of it in postgresql.
>
>
> Please help if any pointer or lead to its solution.

If I understand=C2= =A0correctly,=C2=A0 you want to log exceptions to a table, or assume it is = logged to some system table.

I am not sure if there is inbuilt setup that logs the exceptions or an= y messages to some table.
Everything gets logged to = logfile=C2=A0 based on how logging is configured.
There are ways where you can enable csv logging t= o file and use file_fdw to make it queryable via sql query.=C2=A0


--0000000000000c9a2505c8e333d7--