Re: Combining metavariables and table names

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Combining metavariables and table names
Дата
Msg-id CAKFQuwb9jdGH6-og4HFQv=AU7UH+V2AjoQy2y+xZ_Cjz1bx5FA@mail.gmail.com
обсуждение исходный текст
Ответ на Combining metavariables and table names  (H <agents@meddatainc.com>)
Ответы Re: Combining metavariables and table names
Re: Combining metavariables and table names
Список pgsql-general
On Sunday, December 28, 2025, H <agents@meddatainc.com> wrote:

I have a feeling I might be missing how to use the combination of a metavariable and a table name when used in an argument to a procedure.

No, what you are doing is impossible if you limit yourself to direct SQL command syntax writing.
 
Even though I gotten it to work, what would the correct usage be?

I’d probably do something like:

versioning(…, format(‘%I.%I’, :’s’, ‘test_history’), …)

David J.

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