From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sasmit Utkarsh <utkarshsasmit@gmail.com>
To: Rob Sargent <robjsargent@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Need Assistance: Command to display procedures does not work
Date: Wed, 28 Feb 2024 09:13:00 -0800
Message-ID: <5a9477e8-d1aa-435e-a547-19eb041cc643@aklaver.com> (raw)
In-Reply-To: <CAM-5MT0s8ZWU+0dzb1XnTqt8tSB-tvu54TCABgMFE8dO+Kx3=Q@mail.gmail.com>
References: <CAM-5MT3+Gk11krD5cYQv42usQ43aD_p3ZC==a9ZKxH5SQ_N+8A@mail.gmail.com>
<F222AA11-49DD-4BC4-8924-F292BC444360@gmail.com>
<CAM-5MT0s8ZWU+0dzb1XnTqt8tSB-tvu54TCABgMFE8dO+Kx3=Q@mail.gmail.com>
On 2/28/24 09:08, Sasmit Utkarsh wrote:
> Thanks Rob
>
> So which one could I rely on for better information? probably, results
> shown by PgAdmin4 right? As I get the below when I try to drop
> procedure through psql cmd and i see the procedure getting fetched from
> the query
>
> shc_data=> SELECT 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)
>
> shc_data=> DROP PROCEDURE *sql_insert_data_procedure*;
> ERROR: could not find a procedure named "sql_insert_data_procedure"
> shc_data=>
We've been down this road before, it is a search_path issue.
In psql do:
SHOW search_path;
then do:
\df *.sql_insert_data_procedure
Then see if the schema shown in the second command is in the search_path
returned by the first command.
>
> 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, robjsargent@gmail.com
Subject: Re: Need Assistance: Command to display procedures does not work
In-Reply-To: <5a9477e8-d1aa-435e-a547-19eb041cc643@aklaver.com>
References: <CAM-5MT3+Gk11krD5cYQv42usQ43aD_p3ZC==a9ZKxH5SQ_N+8A@mail.gmail.com> <F222AA11-49DD-4BC4-8924-F292BC444360@gmail.com> <CAM-5MT0s8ZWU+0dzb1XnTqt8tSB-tvu54TCABgMFE8dO+Kx3=Q@mail.gmail.com> <5a9477e8-d1aa-435e-a547-19eb041cc643@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