*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.64 2000/11/08 16:59:49 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.65 2000/11/08 23:24:24 tgl Exp $
*
*-------------------------------------------------------------------------
*/
static char *
resolve_alt_dbpath(const char * dbpath, Oid dboid)
{
- char * prefix;
+ const char * prefix;
char * ret;
size_t len;
if (strchr(dbpath, '/'))
{
-#ifdef ALLOW_ABSOLUTE_DBPATHS
- prefix = dbpath;
-#else
+#ifndef ALLOW_ABSOLUTE_DBPATHS
elog(ERROR, "Absolute paths are not allowed as database locations");
#endif
+ prefix = dbpath;
}
else
{