Binary difference in pg_internal.init after running pg_initdbmultiple times

Поиск
Список
Период
Сортировка
От samuel.coulee
Тема Binary difference in pg_internal.init after running pg_initdbmultiple times
Дата
Msg-id 1531382924194-0.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: Binary difference in pg_internal.init after running pg_initdbmultiple times  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Re: Binary difference in pg_internal.init after running pg_initdb multiple times  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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
pointer fields.

And my question is : Could we clear the pointer values in 'Relation' before
calling write_item(...)?

No benefit regarding function or performance, just for binary
compatibility... 
Thanks for reading. 




--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Yugo Nagata
Дата:
Сообщение: Problem on pg_dump RANGE partition with expressions
Следующее
От: Haozhou Wang
Дата:
Сообщение: Re: [PATCH] Add missing type conversion functions for PL/Python