Search Postgresql Archives

Re: Is there a way to detect that code is inside CREATE EXTENSION?

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

 





At the C-code level you can check the creating_extension global variable,
or maybe better look at the in_extension fields of CollectedCommands.

Thanks Tom!

That was the hint I needed, looks like pg_event_trigger_ddl_commands() has an in_extension boolean that seems like it will do what I need?   If I understand you correctly that's what you're referring to with CollectedCommands.   Testing it now but that looks like the answer for me, if any of those are true then I can just skip the regeneration. 

-Michel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux