Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4B85D475AE4 for ; Mon, 25 Nov 2002 12:01:43 -0500 (EST) Received: from alpha2.tellium.com (unknown [65.125.55.125]) by postgresql.org (Postfix) with ESMTP id 151FA475AD7 for ; Mon, 25 Nov 2002 12:01:41 -0500 (EST) Received: from mail1.tellium.com (unverified) by alpha2.tellium.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Mon, 25 Nov 2002 11:59:50 -0500 Received: from tellium.com (hallander-pc.tellium.com [192.168.3.18]) by mail1.tellium.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id W01N376R; Mon, 25 Nov 2002 11:57:34 -0500 Message-ID: <3DE25717.3080009@tellium.com> Date: Mon, 25 Nov 2002 12:00:07 -0500 From: Eric Hallander User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: ALLOW_ABSOLUTE_DBPATHS Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/260 X-Sequence-Number: 6448 In the following snippet from ./src/backend/commands/dbcommands.c, I cannot see anywhere in the configuration where ALLOW_ABSOLUTE_DBPATHS gets set, and why this wouldn't be the default anyway. I was creating databases fine, but it is possible that I exported PGDATA2, and used this, as I see that this ifndef definition does not exist in the environment variable portion of the code. Anyway, I have been using 7.2.3 on HPUX 11.0 Any thoughts? There was a post on the 10th in the bugs discussion, http://archives.postgresql.org/pgsql-bugs/2002-11/msg00080.php but the reply seems to have an html source issue http://archives.postgresql.org/pgsql-bugs/2002-11/msg00067.php I am basically having the same problem, but see in the source where the issue is. Eric static char * resolve_alt_dbpath(const char *dbpath, Oid dboid) { const char *prefix; char *ret; size_t len; if (dbpath == NULL || dbpath[0] == '\0') return NULL; if (strchr(dbpath, '/')) { if (dbpath[0] != '/') elog(ERROR, "Relative paths are not allowed as database locations"); #ifndef ALLOW_ABSOLUTE_DBPATHS elog(ERROR, "Absolute paths are not allowed as database locations"); #endif prefix = dbpath; } else { /* must be environment variable */ char *var = getenv(dbpath); if (!var) elog(ERROR, "Postmaster environment variable '%s' not set", dbpath); if (var[0] != '/') elog(ERROR, "Postmaster environment variable '%s' must be absolute path", dbpath); prefix = var; }