Re: [HACKERS] Use of PG_VERSION

2010-01-06 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > > Is there a reason tablespace.c::set_short_version() uses PG_VERSION, and > > not the simpler PG_MAJORVERSION? initdb.c::get_short_version() does the > > same thing. > > Probably that code predates the addition of the separate PG_MAJORVERSION > #define.

Re: [HACKERS] Use of PG_VERSION

2010-01-06 Thread Tom Lane
Bruce Momjian writes: > Is there a reason tablespace.c::set_short_version() uses PG_VERSION, and > not the simpler PG_MAJORVERSION? initdb.c::get_short_version() does the > same thing. Probably that code predates the addition of the separate PG_MAJORVERSION #define. +1 for simplifying. The cha

[HACKERS] Use of PG_VERSION

2010-01-06 Thread Bruce Momjian
Is there a reason tablespace.c::set_short_version() uses PG_VERSION, and not the simpler PG_MAJORVERSION? initdb.c::get_short_version() does the same thing. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a har