When deleting pgadmin_* tables and functions, I dropped by error
plpgsql_call_handler which standed right after pgadmin in alphabetical
order... A GUI like pgAdmin2 is like a machine gun.
Bang Bang. I am shot down.
IMHO, dropping plpgsql_call_handler function is a total nonsense as :
- it breaks the language definition,
- it breaks all existing PLpgSQL functions,
- it cannot be recreated (or with different OID which is nonsense).
A language should only be dropped in the language tab. Waiting for your
approval to move it to system.
In the same field, we should prevent users from dropping functions used in:
- other functions,
Could we define read-only clauses in pgSchema objects to automatically query
a) trigger foo -> requires -> function bar
b) function son -> requires -> father, mother (two functions)
c) function father -> provides -> son = it cannot be dropped
d) table foo -> provides -> view bar = table cannot be dropped
e) Language plpgsql -> provides -> functions foo, bar, etc -> it cannot be
requires and provides are read-only functions returning a string. When
object->provides is null, the object can be dropped, otherwise it cannot. It
should be an option like row count.
It is not like a dependency chain but rather a security mechanism. Shall it
be added to the to-do-list? It does not seem too difficult to add. What do
you think my friend?
pgadmin-hackers by date
|Next:||From: Jean-Michel POURE||Date: 2002-02-21 22:34:14|
|Subject: Re: [ODBC] Unicode support|
|Previous:||From: Jean-Michel POURE||Date: 2002-02-21 20:08:01|
|Subject: Re: Timestamp reverse engeneering bug|