Certain include files are installed by src/include/Makefile and by
interfaces/libpq++/Makefile.  However, they in turn include others that
are not installed, thus obviating the usefulness of the ones that are.

The missing files are these:

access/heapam.h
access/htup.h
access/relscan.h
access/rmgr.h
access/sdir.h
access/skey.h
access/strat.h
access/transam.h
access/tupdesc.h
access/tupmacs.h
access/xact.h
access/xlogdefs.h
access/xlog.h
access/xlogutils.h
catalog/pg_am.h
catalog/pg_attribute.h
catalog/pg_class.h
catalog/pg_language.h
catalog/pg_proc.h
catalog/pg_type.h
executor/execdefs.h
executor/execdesc.h
executor/executor.h
executor/hashjoin.h
executor/tuptable.h
nodes/execnodes.h
nodes/memnodes.h
nodes/nodes.h
nodes/params.h
nodes/parsenodes.h
nodes/pg_list.h
nodes/plannodes.h
nodes/primnodes.h
nodes/relation.h
pgconnection.h
pgdatabase.h
pgtransdb.h
rewrite/prs2lock.h
storage/block.h
storage/buffile.h
storage/buf.h
storage/bufmgr.h
storage/bufpage.h
storage/fd.h
storage/ipc.h
storage/item.h
storage/itemid.h
storage/itemptr.h
storage/lmgr.h
storage/lock.h
storage/off.h
storage/page.h
storage/relfilenode.h
storage/shmem.h
storage/spin.h
tcop/dest.h
tcop/pquery.h
tcop/tcopprot.h
tcop/utility.h
utils/builtins.h
utils/datetime.h
utils/datum.h
utils/fcache.h
utils/hsearch.h
utils/memutils.h
utils/nabstime.h
utils/numeric.h
utils/portal.h
utils/rel.h
utils/syscache.h
utils/timestamp.h
utils/tqual.h


The list can be regenerated with the attached script.

Example:
  $ pg_includes /usr/local/pgsql/include


#!/bin/sh
PGINCLUDEDIR=$1
[ -z "$PGINCLUDEDIR" ] && PGINCLUDEDIR=/usr/include/postgresql
find $PGINCLUDEDIR -name '*.h' |
        sed "s|$PGINCLUDEDIR/||" >/tmp/$$
lastlc=-1
lc=0
while [ $lc -ne $lastlc ]
do
        lastlc=$lc
        (
          (
                cd ~/mypackages/pg7.1/postgresql-7.1beta4/src/include
                cat /tmp/$$ | xargs grep '#include' 2>/dev/null
                cd /usr/include/postgresql
                cat /tmp/$$ | xargs grep '#include' 2>/dev/null
          ) |
                grep -v '<' |
                sed 's/^.*"\(.*\)".*$/\1/'
          cat /tmp/$$
        ) |
                sort -u >/tmp/$$-1

        mv /tmp/$$-1 /tmp/$$
        lc=`wc -l /tmp/$$ | awk '{print $1}'`
done
(
   cat /tmp/$$
        find $PGINCLUDEDIR -name '*.h' |
           sed "s|$PGINCLUDEDIR/||"
) | sort | uniq -u
rm /tmp/$$
Oliver Elphick                                [EMAIL PROTECTED]
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "He hath not dealt with us after our sins; nor rewarded
      us according to our iniquities. For as the heaven is 
      high above the earth, so great is his mercy toward 
      them that fear him. As far as the east is from the 
      west, so far hath he removed our transgressions from 
      us."                  Psalms 103:10-12 

Reply via email to