plpgsql function-parsing

Поиск
Список
Период
Сортировка
От chris
Тема plpgsql function-parsing
Дата
Msg-id d24066d1-a3b6-89a2-bb20-beaa92f98405@pgsqlrocket.com
обсуждение исходный текст
Ответы Re: plpgsql function-parsing
Список pgsql-general
Hi,

I am trying to create a function that gets passed a statement as a 
string and then I need to change the table_name within the string by 
adding a "_cdc" to it, then execute the statement

ex:

string passed could be GRANT all ON authors TO bob.

then

EXECUTE GRANT all ON authors_cdc TO bob


I'm looking into parsing the string but i can't find a way to parse in a 
way that'll work. Any ideas?


Thanks,

Chris



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: What is wrong with my pgadmin?
Следующее
От: Celia McInnis
Дата:
Сообщение: normalizing a float array?