mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 07:40:59 -04:00
22 lines
641 B
C
22 lines
641 B
C
#ifndef RELFILENODE_H
|
|
#define RELFILENODE_H
|
|
|
|
/*
|
|
* This is all what we need to know to find relation file.
|
|
* tblNode is identificator of tablespace and because of
|
|
* currently our tablespaces are equal to databases this is
|
|
* database OID. relNode is currently relation OID on creation
|
|
* but may be changed later if required. relNode is stored in
|
|
* pg_class.relfilenode.
|
|
*/
|
|
typedef struct RelFileNode
|
|
{
|
|
Oid tblNode; /* tablespace */
|
|
Oid relNode; /* relation */
|
|
} RelFileNode;
|
|
|
|
#define RelFileNodeEquals(node1, node2) \
|
|
((node1).relNode == (node2).relNode && \
|
|
(node1).tblNode == (node2).tblNode)
|
|
|
|
#endif /* RELFILENODE_H */
|