| От | Thomas Kellerer |
|---|---|
| Тема | How to extract information from pg_ddl_command type |
| Дата | |
| Msg-id | qg6ocf$ikd$1@blaine.gmane.org обсуждение исходный текст |
| Ответы |
Re: How to extract information from pg_ddl_command type
|
| Список | pgsql-general |
The function pg_event_trigger_ddl_commands() returns several columns, one of them being "command" that is of the type "pg_ddl_command". The manual[1] describes this column as: > A complete representation of the command, in internal format. > This cannot be output directly, but it can be passed to other > functions to obtain different pieces of information about the > command. However, I can not find any of those "other functions" to extract information from that column. My goal is to get the complete SQL text that fired the event trigger - is that even possible through pg_event_trigger_ddl_commands()? Thanks Thomas [1] https://www.postgresql.org/docs/current/functions-event-triggers.html
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера