None-reentrant function call in signal handler startup_die()

2018-10-23 Thread samuel.coulee
Hi, I found that in the PG source code function BackendInitialize(), handler for SIGTERM was set to be startup_die(). And in startup_die(), we simply call proc_exit to exit the process. What's more, early in BackendInitialize() function, we called pq_init to setup socket_close() as a process ex

Binary difference in pg_internal.init after running pg_initdb multiple times

2018-07-12 Thread samuel.coulee
Hi, In the PG source code function "write_relcache_init_file()", I found that the whole 'Relation' structs were directly written into the file 'pg_internal.init'. This brings some binary differences of that file, if we run pg_initdb multiple times, because the struct 'Relation' contains some poin