Re: Need Assistance: Command to display procedures does not work - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Need Assistance: Command to display procedures does not work
Date
Msg-id 5a9477e8-d1aa-435e-a547-19eb041cc643@aklaver.com
Whole thread Raw
In response to Re: Need Assistance: Command to display procedures does not work  (Sasmit Utkarsh <utkarshsasmit@gmail.com>)
Responses Re: Need Assistance: Command to display procedures does not work
List pgsql-general
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




pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Unable to get PostgreSQL 15 with Kerberos (GSS) working
Next
From: Sasmit Utkarsh
Date:
Subject: Re: Need Assistance: Command to display procedures does not work