/* Capture the tablespace OIDs so that all backends agree on them. */
PrepareTempTablespaces();
fileset->ntablespaces =
GetTempTablespaces(&fileset->tablespaces[0],
lengthof(fileset->tablespaces)); if (fileset->ntablespaces == 0)
{ /* If the GUC is empty, use current database's default tablespace */
fileset->tablespaces[0] = MyDatabaseTableSpace;
fileset->ntablespaces = 1;
} else
{ int i;
/* *AnentryofInvalidOidmeansusethedefaulttablespaceforthe *currentdatabase.Replacethatnow,tobesurethatallusersof *theFileSetagreeonwhattodo.
*/ for (i = 0; i < fileset->ntablespaces; i++)
{ if (fileset->tablespaces[i] == InvalidOid)
fileset->tablespaces[i] = MyDatabaseTableSpace;
}
}
}
/* If we failed, see if we need to create the directory on demand. */ if (file <= 0)
{ char tempdirpath[MAXPGPATH]; char filesetpath[MAXPGPATH];
Oid tablespace = ChooseTablespace(fileset, name);
/*
* Open a file that was created with FileSetCreate() */
File
FileSetOpen(FileSet *fileset, constchar *name, int mode)
{ char path[MAXPGPATH];
File file;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.