Re: Binary difference in pg_internal.init after running pg_initdb multiple times

2018-07-12 Thread Tom Lane
"samuel.coulee" <313914...@qq.com> writes: > 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, be

Re: Binary difference in pg_internal.init after running pg_initdb multiple times

2018-07-12 Thread Tomas Vondra
On 07/12/2018 10:08 AM, samuel.coulee wrote: 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, b

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