From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sasmit Utkarsh <utkarshsasmit@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Need Assistance: Command to display procedures does not work
Date: Wed, 28 Feb 2024 08:03:25 -0800
Message-ID: <545a6cd8-aa5b-45aa-8621-158ea355a09a@aklaver.com> (raw)
In-Reply-To: <CAM-5MT3+Gk11krD5cYQv42usQ43aD_p3ZC==a9ZKxH5SQ_N+8A@mail.gmail.com>
References: <CAM-5MT3+Gk11krD5cYQv42usQ43aD_p3ZC==a9ZKxH5SQ_N+8A@mail.gmail.com>
On 2/28/24 07:53, Sasmit Utkarsh wrote:
> Hi Postgresql Team,
>
> Getting error while executing the below \df command to list the
> procedures/functions. whereas query gives the appropriate results Please
> assist on how to troubleshoot this.
>
> [sutkarsh-a@dxctravel.svcs.entsvcs.com@zuccmshcd2 data-exports]$ psql
> "host=10.166.18.116 port=5432 dbname=shc_data user=shc_admin
> password=abc123 sslmode=require"
> psql (10.23, server 14.9)
> WARNING: psql major version 10, server major version 14.
> Some psql features might not work.
The above is not enough of a hint?
Use psql version 14 as:
https://www.postgresql.org/docs/11/release-11.html
Replace system catalog pg_proc's proisagg and proiswindow columns with
prokind (Peter Eisentraut)
> SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits:
> 256, compression: off)
> Type "help" for help.
>
> *shc_data=> \df*
> *ERROR: column p.proisagg does not exist
> LINE 6: WHEN p.proisagg THEN 'agg'
> ^
> HINT: Perhaps you meant to reference the column "p.prolang".*
> *
> *
> shc_data=> S*ELECT proname AS function_name,proacl AS privileges FROM
> pg_proc WHERE proname in
> ('sql_insert_data_procedure','sql_select_data_procedure','sql_select_size_procedure','sql_update_data_procedure');*
> function_name | privileges
> ---------------------------+------------
> sql_select_size_procedure |
> sql_select_data_procedure |
> sql_insert_data_procedure |
> sql_update_data_procedure |
> (4 rows)
>
>
> Regards,
> Sasmit Utkarsh
> +91-7674022625
--
Adrian Klaver
adrian.klaver@aklaver.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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, utkarshsasmit@gmail.com
Subject: Re: Need Assistance: Command to display procedures does not work
In-Reply-To: <545a6cd8-aa5b-45aa-8621-158ea355a09a@aklaver.com>
References: <CAM-5MT3+Gk11krD5cYQv42usQ43aD_p3ZC==a9ZKxH5SQ_N+8A@mail.gmail.com> <545a6cd8-aa5b-45aa-8621-158ea355a09a@aklaver.com>
* 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