mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
First batch of object rename commands.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.102 2003/04/04 20:42:12 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.103 2003/06/27 14:45:30 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -105,22 +105,6 @@ SetDatabasePath(const char *path)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SetDatabaseName(const char *name)
|
||||
{
|
||||
if (DatabaseName)
|
||||
{
|
||||
free(DatabaseName);
|
||||
DatabaseName = NULL;
|
||||
}
|
||||
/* use strdup since this is done before memory contexts are set up */
|
||||
if (name)
|
||||
{
|
||||
DatabaseName = strdup(name);
|
||||
AssertState(DatabaseName);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Set data directory, but make sure it's an absolute path. Use this,
|
||||
* never set DataDir directly.
|
||||
|
Reference in New Issue
Block a user