summaryrefslogtreecommitdiff
path: root/src/include/common/relpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/common/relpath.h')
-rw-r--r--src/include/common/relpath.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/include/common/relpath.h b/src/include/common/relpath.h
index 4bbd94393c8..2d3b52fe0b8 100644
--- a/src/include/common/relpath.h
+++ b/src/include/common/relpath.h
@@ -22,10 +22,12 @@
/*
* RelFileNumber data type identifies the specific relation file name.
*/
-typedef Oid RelFileNumber;
-#define InvalidRelFileNumber ((RelFileNumber) InvalidOid)
+typedef uint64 RelFileNumber;
+#define InvalidRelFileNumber ((RelFileNumber) 0)
#define RelFileNumberIsValid(relnumber) \
((bool) ((relnumber) != InvalidRelFileNumber))
+#define atorelnumber(x) ((RelFileNumber) strtou64((x), NULL, 10))
+#define MAX_RELFILENUMBER UINT64CONST(0x00FFFFFFFFFFFFFF)
/*
* Name of major-version-specific tablespace subdirectories
@@ -35,6 +37,7 @@ typedef Oid RelFileNumber;
/* Characters to allow for an OID in a relation path */
#define OIDCHARS 10 /* max chars printed by %u */
+#define RELNUMBERCHARS 20 /* max chars printed by UINT64_FORMAT */
/*
* Stuff for fork names.