diff options
| author | Robert Haas <rhaas@postgresql.org> | 2022-09-27 12:01:57 -0400 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2022-09-27 12:01:57 -0400 |
| commit | 2f47715cc8649f854b1df28dfc338af9801db217 (patch) | |
| tree | bac415813e53d0a65f2c91c8eec69cc7834a3c0b /src/include/common/relpath.h | |
| parent | 7ac918ada0037fc1101456271b3e7d0982d6a375 (diff) | |
Move RelFileNumber declarations to common/relpath.h.
Previously, these were declared in postgres_ext.h, but they are not
needed nearly so widely as the OID declarations, so that doesn't
necessarily make sense. Also, because postgres_ext.h is included
before most of c.h has been processed, the previous location creates
some problems for a pending patch.
Patch by me, reviewed by Dilip Kumar.
Discussion: http://postgr.es/m/CA+TgmoYc8oevMqRokZQ4y_6aRn-7XQny1JBr5DyWR_jiFtONHw@mail.gmail.com
Diffstat (limited to 'src/include/common/relpath.h')
| -rw-r--r-- | src/include/common/relpath.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/common/relpath.h b/src/include/common/relpath.h index 3ab713247f3..4bbd94393c8 100644 --- a/src/include/common/relpath.h +++ b/src/include/common/relpath.h @@ -19,6 +19,13 @@ */ #include "catalog/catversion.h" /* pgrminclude ignore */ +/* + * RelFileNumber data type identifies the specific relation file name. + */ +typedef Oid RelFileNumber; +#define InvalidRelFileNumber ((RelFileNumber) InvalidOid) +#define RelFileNumberIsValid(relnumber) \ + ((bool) ((relnumber) != InvalidRelFileNumber)) /* * Name of major-version-specific tablespace subdirectories |
