src/backend/utils/init/miscinit.c
/*
 * Set data directory, but make sure it's an absolute path.  Use this,
 * never set DataDir directly.
 */
Set data directory, but make sure it's an absolute path.  Use this,
never set DataDir directly.
Set data directory but make sure it ' s an absolute path . Use this never set DataDir directly .
void
SetDataDir(const char *dir)
{
	char	   *new;
	AssertArg(dir);
	new = make_absolute_path(dir);
	if (DataDir)
		free(DataDir);
	DataDir = new;
}
void SetDataDir ( const char * dir ) { char * new ; AssertArg ( dir ) ; new = make_absolute_path ( dir ) ; if ( DataDir ) free ( DataDir ) ; DataDir = new ; }
Set data directory, but make sure it's an absolute path.
Set data directory but make sure it ' s an absolute path .
/* If presented path is relative, convert to absolute */