Search Postgresql Archives

deleting function from pg_catalog.pg_proc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Folks,

I would like to know if deleting functions from pg_catalog.pg_proc with
the following SQL statement is advisable?

I would like a way of deleting my functions without using the DROP
FUNCTION statement.

------------------------------------------------------------------
delete from pg_catalog.pg_proc where oid in (select sp.oid from
	pg_catalog.pg_proc sp
	inner join pg_namespace ns on sp.pronamespace=ns.oid
where
	ns.nspname='public'
	and sp.proname like 'sys%')
------------------------------------------------------------------
Thank you.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux