Re: [HACKERS] Changing oidvector length - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Changing oidvector length
Date
Msg-id 7431.947550957@sss.pgh.pa.us
Whole thread Raw
In response to Changing oidvector length  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] Changing oidvector length
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> We have the oidvector and int2vector length's set in pg_type.h.  Is
> there any way to make those values configurable from defines in
> config.h?

> If not, I will have to move the defines to postgres.h so people can not
> change them.   Maybe that is a better place for them anyway.

Actually, I suspect they should be in postgres_ext.h, which is where
NAMEDATALEN is.  All of these values are potentially visible to code
outside Postgres, so postgres_ext.h seems like the right place.

config.h would be appropriate for something you could tweak without
changing the external API of Postgres...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] oid8/int28
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Changing oidvector length