Re: split TOAST support out of postgres.h - Mailing list pgsql-hackers

From Tom Lane
Subject Re: split TOAST support out of postgres.h
Date
Msg-id 320834.1672240076@sss.pgh.pa.us
Whole thread Raw
In response to split TOAST support out of postgres.h  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Responses Re: split TOAST support out of postgres.h
Re: split TOAST support out of postgres.h
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> ... Then we could either

> 1) Include varatt.h in postgres.h, similar to elog.h and palloc.h.  That 
> way we clean up the files a bit but don't change any external interfaces.

> 2) Just let everyone who needs it include the new file.

> 3) Compromise: You can avoid most "damage" by having fmgr.h include 
> varatt.h.  That satisfies most data types and extension code.  That way, 
> there are only a few places that need an explicit include of varatt.h.

> I went with the last option in my patch.

I dunno, #3 seems kind of unprincipled.  Also, since fmgr.h is included
so widely, I doubt it is buying very much in terms of reducing header
footprint.  How bad is it to do #2?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Error-safe user functions
Next
From: Tom Lane
Date:
Subject: Re: Making Vars outer-join aware