catalog

How to get function parameter lists (so I can drop a function)

大憨熊 提交于 2019-11-26 22:40:50
I want to get the SQL to drop a function in PostgreSQL. I write DROP FUNCTION and a get function name from pg_proc . That is not problem. However if I leave blank parameters it will not drop the function. I checked the manual and there is written then I have to identify the function with its parameters to drop it, eg DROP FUNCTION some_func(text,integer) not just DROP FUNCTION some_func . Where can I find the parameters? In the function's row on in the pg_proc table there is no parameters. So how can I get the SQL to drop the function? Postgres has a dedicated function for that purpose.

What's the difference between a catalog and a schema in a relational database?

社会主义新天地 提交于 2019-11-26 17:02:13
I used to think schema were the "upper wrapper" object before the database itself. I mean DB.schema.<what_ever_object_name_under_schema> . Well, the catalog "wrapper" is now quite confusing. Why should we need a catalog? For what purpose, precisely should the catalog be used? Mike Sherrill 'Cat Recall' From the relational point of view : The catalog is the place where--among other things--all of the various schemas (external, conceptual, internal) and all of the corresponding mappings (external/conceptual, conceptual/internal) are kept. In other words, the catalog contains detailed information