Log full DDL alter commands to a table with an event trigger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All;


I would like to log the full alter command for any ALTER statements to a table,  section 9.30.1 of the current docs states this:

command pg_ddl_command 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.


Would there be any way to translate command to a text format and insert it into a column in a local logging table?


Thanks in advance


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux