mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Tablespaces. Alternate database locations are dead, long live tablespaces.
There are various things left to do: contrib dbsize and oid2name modules need work, and so does the documentation. Also someone should think about COMMENT ON TABLESPACE and maybe RENAME TABLESPACE. Also initlocation is dead, it just doesn't know it yet. Gavin Sherry and Tom Lane.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.126 2004/05/30 23:40:38 neilc Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.127 2004/06/18 06:13:54 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -157,7 +157,6 @@ void
|
||||
SetDataDir(const char *dir)
|
||||
{
|
||||
char *new;
|
||||
int newlen;
|
||||
|
||||
AssertArg(dir);
|
||||
|
||||
@ -212,13 +211,7 @@ SetDataDir(const char *dir)
|
||||
* Strip any trailing slash. Not strictly necessary, but avoids
|
||||
* generating funny-looking paths to individual files.
|
||||
*/
|
||||
newlen = strlen(new);
|
||||
if (newlen > 1 && (new[newlen - 1] == '/'
|
||||
#ifdef WIN32
|
||||
|| new[newlen - 1] == '\\'
|
||||
#endif
|
||||
))
|
||||
new[newlen - 1] = '\0';
|
||||
canonicalize_path(new);
|
||||
|
||||
if (DataDir)
|
||||
free(DataDir);
|
||||
|
Reference in New Issue
Block a user