--- trunk/pgest.c 2005/05/27 21:06:01 25 +++ trunk/pgest.c 2005/06/30 20:01:36 27 @@ -34,6 +34,11 @@ #define GET_STR(textp) DatumGetCString(DirectFunctionCall1(textout, PointerGetDatum(textp))) #define GET_TEXT(cstrp) DatumGetTextP(DirectFunctionCall1(textin, CStringGetDatum(cstrp))) +/* SortMem got renamed in PostgreSQL 8.0 */ +#ifndef SortMem + #define SortMem 16 * 1024 +#endif + /* prototype */ char *attr2text(ESTDOC *doc, char *attr);