dynamic SQL/plsql functions

Поиск
Список
Период
Сортировка
От Richard Harvey Chapman
Тема dynamic SQL/plsql functions
Дата
Msg-id Pine.LNX.4.10.10009201508540.2124-100000@smirk.3gfp.com
обсуждение исходный текст
Список pgsql-hackers
I have a large list ot parameters and I'd like to have just one main
function for checking them all.  Like so:

check_param(some_identifier_for_the_param, param_value)
...   rec RECORD;
...  select into rec check_param_function  from param_check_table  where id == identifier;
  select rec.check_param_function(param_value) as result;
...


That's the general idea. Is there a way to dynamically call a plsql or sql
function? Is there a way to do what I have above (evaluating a string
before a SQL statement gets sent to postgres)?

Thanks,

R.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jesus Sandoval
Дата:
Сообщение: Dynamic application data refreshing
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: -S is missing in postgresql.conf?