mirror of
https://github.com/postgres/postgres.git
synced 2025-06-04 00:02:37 -04:00
Here's a tiny fix for a harmless typo in catalog.c:
Too much space is allocated for tablespace file path, I guess the directory name used to be "pg_tablespaces" instead of "pg_tblspc" at some point. Heikki Linnakangas
This commit is contained in:
parent
1fcfa038ce
commit
c6ad5c2eb4
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.57 2004/12/31 21:59:38 pgsql Exp $
|
* $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.58 2005/03/07 04:15:34 neilc Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -58,7 +58,7 @@ relpath(RelFileNode rnode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* All other tablespaces are accessed via symlinks */
|
/* All other tablespaces are accessed via symlinks */
|
||||||
pathlen = strlen(DataDir) + 16 + OIDCHARS + 1 + OIDCHARS + 1 + OIDCHARS + 1;
|
pathlen = strlen(DataDir) + 11 + OIDCHARS + 1 + OIDCHARS + 1 + OIDCHARS + 1;
|
||||||
path = (char *) palloc(pathlen);
|
path = (char *) palloc(pathlen);
|
||||||
snprintf(path, pathlen, "%s/pg_tblspc/%u/%u/%u",
|
snprintf(path, pathlen, "%s/pg_tblspc/%u/%u/%u",
|
||||||
DataDir, rnode.spcNode, rnode.dbNode, rnode.relNode);
|
DataDir, rnode.spcNode, rnode.dbNode, rnode.relNode);
|
||||||
@ -99,7 +99,7 @@ GetDatabasePath(Oid dbNode, Oid spcNode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* All other tablespaces are accessed via symlinks */
|
/* All other tablespaces are accessed via symlinks */
|
||||||
pathlen = strlen(DataDir) + 16 + OIDCHARS + 1 + OIDCHARS + 1;
|
pathlen = strlen(DataDir) + 11 + OIDCHARS + 1 + OIDCHARS + 1;
|
||||||
path = (char *) palloc(pathlen);
|
path = (char *) palloc(pathlen);
|
||||||
snprintf(path, pathlen, "%s/pg_tblspc/%u/%u",
|
snprintf(path, pathlen, "%s/pg_tblspc/%u/%u",
|
||||||
DataDir, spcNode, dbNode);
|
DataDir, spcNode, dbNode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user