[HACKERS] Page type

2002-08-19 Thread Manfred Koizar
Having contributed to the need for pg_dump/initdb/restore when upgrading from 7.2 to 7.3, I plan to submit a patch which *could* make future transitions easier. bufpage.h: typedef struct PageHeaderData { ... uint32 pd_type;/* kind and version */ ... } #define

Re: [HACKERS] Page type

2002-08-19 Thread Tom Lane
Manfred Koizar [EMAIL PROTECTED] writes: Having contributed to the need for pg_dump/initdb/restore when upgrading from 7.2 to 7.3, I plan to submit a patch which *could* make future transitions easier. We do need a page version code but I do not want to waste 4 bytes per page on it. I was

Re: [HACKERS] Page type

2002-08-19 Thread Bruce Momjian
I didn't follow the index part completely, but will heap and index pages have the version info in the same offset? Will there be a way to easily identify an index page vs. a heap page. --- Tom Lane wrote: Manfred Koizar

Re: [HACKERS] Page type

2002-08-19 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I didn't follow the index part completely, but will heap and index pages have the version info in the same offset? Sure, low byte of pd_pagesize. Will there be a way to easily identify an index page vs. a heap page. There already is: heap pages have

[HACKERS] Page type and version

2002-07-05 Thread Manfred Koizar
As the upcoming release is breaking compatibility anyway: what do you think about placing a magic number and some format version info into the page header? One 32-bit-number per page should be enough to encode page type and version. We have just to decide, how we want it: a) combine page type

Re: [HACKERS] Page type and version

2002-07-05 Thread Bruce Momjian
Manfred Koizar wrote: As the upcoming release is breaking compatibility anyway: what do you think about placing a magic number and some format version info into the page header? One 32-bit-number per page should be enough to encode page type and version. We have just to decide, how we