]> granicus.if.org Git - postgresql/commitdiff
Rename pg_tablespaces directory to pg_tblspc, so it is more unique from
authorBruce Momjian <bruce@momjian.us>
Mon, 21 Jun 2004 01:04:45 +0000 (01:04 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 21 Jun 2004 01:04:45 +0000 (01:04 +0000)
the pg_tablespace table.  Update catalog version.

src/backend/catalog/catalog.c
src/backend/commands/tablespace.c
src/bin/initdb/initdb.c
src/include/catalog/catversion.h

index 32d4d33d89a57f1e35f6497ffe5cfae5400d209d..9ca8b135b4ccc33e0b9e9e0da5f4b43efb8362c4 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.52 2004/06/18 06:13:19 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.53 2004/06/21 01:04:41 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -60,7 +60,7 @@ relpath(RelFileNode rnode)
                /* All other tablespaces are accessed via symlinks */
                pathlen = strlen(DataDir) + 16 + OIDCHARS + 1 + OIDCHARS + 1 + OIDCHARS + 1;
                path = (char *) palloc(pathlen);
-               snprintf(path, pathlen, "%s/pg_tablespaces/%u/%u/%u",
+               snprintf(path, pathlen, "%s/pg_tblspc/%u/%u/%u",
                                 DataDir, rnode.spcNode, rnode.dbNode, rnode.relNode);
        }
        return path;
@@ -101,7 +101,7 @@ GetDatabasePath(Oid dbNode, Oid spcNode)
                /* All other tablespaces are accessed via symlinks */
                pathlen = strlen(DataDir) + 16 + OIDCHARS + 1 + OIDCHARS + 1;
                path = (char *) palloc(pathlen);
-               snprintf(path, pathlen, "%s/pg_tablespaces/%u/%u",
+               snprintf(path, pathlen, "%s/pg_tblspc/%u/%u",
                                 DataDir, spcNode, dbNode);
        }
        return path;
index d412389bb86112b2b28367f61071fe56eeda0c89..d00c01ce17a54c56e117a32b53c94865456d4504 100644 (file)
  * files within a tablespace into database-specific subdirectories.
  *
  * To support file access via the information given in RelFileNode, we
- * maintain a symbolic-link map in $PGDATA/pg_tablespaces. The symlinks are
+ * maintain a symbolic-link map in $PGDATA/pg_tblspc. The symlinks are
  * named by tablespace OIDs and point to the actual tablespace directories.
  * Thus the full path to an arbitrary file is
- *                     $PGDATA/pg_tablespaces/spcoid/dboid/relfilenode
+ *                     $PGDATA/pg_tblspc/spcoid/dboid/relfilenode
  *
  * There are two tablespaces created at initdb time: global (for shared
  * tables) and default (for everything else).  For backwards compatibility
@@ -45,7 +45,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.1 2004/06/18 06:13:23 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.2 2004/06/21 01:04:42 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -305,7 +305,7 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
         * All seems well, create the symlink
         */
        linkloc = (char *) palloc(strlen(DataDir) + 16 + 10 + 1);
-       sprintf(linkloc, "%s/pg_tablespaces/%u", DataDir, tablespaceoid);
+       sprintf(linkloc, "%s/pg_tblspc/%u", DataDir, tablespaceoid);
 
        if (symlink(location, linkloc) < 0)
                ereport(ERROR,
@@ -385,7 +385,7 @@ DropTableSpace(DropTableSpaceStmt *stmt)
                                           tablespacename);
 
        location = (char *) palloc(strlen(DataDir) + 16 + 10 + 1);
-       sprintf(location, "%s/pg_tablespaces/%u", DataDir, tablespaceoid);
+       sprintf(location, "%s/pg_tblspc/%u", DataDir, tablespaceoid);
 
        /*
         * Check if the tablespace still contains any files.  We try to rmdir
index 44f092fbcc1c5b37d522cdb6c51ddb1fbb8d3553..ab49c02bb2a51029ebd93bedf66e1a7e4fb60899 100644 (file)
@@ -39,7 +39,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  * Portions taken from FreeBSD.
  *
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.38 2004/06/18 06:13:58 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.39 2004/06/21 01:04:44 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1785,7 +1785,7 @@ main(int argc, char *argv[])
        char       *pgdenv;                     /* PGDATA value got from sent to
                                                                 * environment */
        char       *subdirs[] =
-       {"global", "pg_xlog", "pg_clog", "base", "base/1", "pg_tablespaces"};
+       {"global", "pg_xlog", "pg_clog", "base", "base/1", "pg_tblspc"};
 
        progname = get_progname(argv[0]);
        set_pglocale_pgservice(argv[0], "initdb");
index 3ba63bbdea313f77226274081de783eb07a829d8..fc4ed22ba4a3068598e0c4a66dfbb1518c40900d 100644 (file)
@@ -37,7 +37,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.237 2004/06/18 06:14:05 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/catversion.h,v 1.238 2004/06/21 01:04:45 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     200406171
+#define CATALOG_VERSION_NO     200406201
 
 #endif