Re: first add newly loaded plugin to the list then invoke _PG_init

2021-03-11 Thread Julien Rouhaud
On Thu, Mar 11, 2021 at 12:29:49PM +0100, mickiew...@syncad.com wrote: > Hi All, > I'm working on C plugin for Postgres (ver. 10). One of the thing which I > need is to automatically add some SQL functions from the plugin during its > initialization ( inside _PG_init method ). It means that during

first add newly loaded plugin to the list then invoke _PG_init

2021-03-11 Thread mickiewicz
Hi All, I'm working on C plugin for Postgres (ver. 10). One of the thing which I need is to automatically add some SQL functions from the plugin during its initialization ( inside _PG_init method ). It means that during loading libmyplugin.so _PG_init calls SPI_execute( "CREATE FUNCTION fun()