"Prasad Duggineni" <pduggineni@prominencenet.com> writes:
> I am getting the compile error in the =
> /usr/include/pgsql/server/catalog/pg_attribute.h after installing the =
> postgres8.1.
> /usr/include/pgsql/server/catalog/pg_attribute.h:44:26: macro "CATALOG" =
> passed 2 arguments, but takes just 1
CATALOG() used to take 1 argument before 8.1, but now it takes 2.
Apparently your compile is managing to include some unholy combination
of 8.1 and pre-8.1 Postgres header files (specifically, it's picking up
an obsolete copy of postgres.h from somewhere). Check include paths and
so forth.
regards, tom lane