Обсуждение: pg version date file
Where is that file that makes an initdb required? We are supposed to change that file when an initdb is needed. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Where is that file that makes an initdb required? We are supposed to
> change that file when an initdb is needed.
src/include/catalog/catversion.h.
I put it there on the theory that include/catalog/*.h changes would
be the most common reason for wanting to bump the serial number.
But maybe it belongs somewhere else...
regards, tom lane
> Bruce Momjian <pgman@candle.pha.pa.us> writes: > > Where is that file that makes an initdb required? We are supposed to > > change that file when an initdb is needed. > > src/include/catalog/catversion.h. > > I put it there on the theory that include/catalog/*.h changes would > be the most common reason for wanting to bump the serial number. > But maybe it belongs somewhere else... I just couldn't find it. I looked in include only because version.h.in was there. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> src/include/catalog/catversion.h.
>>
>> I put it there on the theory that include/catalog/*.h changes would
>> be the most common reason for wanting to bump the serial number.
>> But maybe it belongs somewhere else...
> I just couldn't find it. I looked in include only because version.h.in
> was there.
You could certainly make a case for moving it to src/include. If
you want to do that, I won't object.
regards, tom lane
> Bruce Momjian <pgman@candle.pha.pa.us> writes: > >> src/include/catalog/catversion.h. > >> > >> I put it there on the theory that include/catalog/*.h changes would > >> be the most common reason for wanting to bump the serial number. > >> But maybe it belongs somewhere else... > > > I just couldn't find it. I looked in include only because version.h.in > > was there. > > You could certainly make a case for moving it to src/include. If > you want to do that, I won't object. No, seems fine there. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026