Header And Logo

PostgreSQL
| The world's most advanced open source database.

Data Structures | Defines | Typedefs | Enumerations

relfilenode.h File Reference

#include "storage/backendid.h"
Include dependency graph for relfilenode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RelFileNode
struct  RelFileNodeBackend

Defines

#define MAX_FORKNUM   INIT_FORKNUM
#define RelFileNodeBackendIsTemp(rnode)   ((rnode).backend != InvalidBackendId)
#define RelFileNodeEquals(node1, node2)
#define RelFileNodeBackendEquals(node1, node2)

Typedefs

typedef enum ForkNumber ForkNumber
typedef struct RelFileNode RelFileNode
typedef struct RelFileNodeBackend RelFileNodeBackend

Enumerations

enum  ForkNumber {
  InvalidForkNumber = -1, MAIN_FORKNUM = 0, FSM_FORKNUM, VISIBILITYMAP_FORKNUM,
  INIT_FORKNUM
}

Define Documentation

#define MAX_FORKNUM   INIT_FORKNUM

Definition at line 39 of file relfilenode.h.

Referenced by mdsync().

#define RelFileNodeBackendEquals (   node1,
  node2 
)
Value:
((node1).node.relNode == (node2).node.relNode && \
     (node1).node.dbNode == (node2).node.dbNode && \
     (node1).backend == (node2).backend && \
     (node1).node.spcNode == (node2).node.spcNode)

Definition at line 113 of file relfilenode.h.

#define RelFileNodeBackendIsTemp (   rnode  )     ((rnode).backend != InvalidBackendId)
#define RelFileNodeEquals (   node1,
  node2 
)

Typedef Documentation

typedef enum ForkNumber ForkNumber
typedef struct RelFileNode RelFileNode

Enumeration Type Documentation

enum ForkNumber
Enumerator:
InvalidForkNumber 
MAIN_FORKNUM 
FSM_FORKNUM 
VISIBILITYMAP_FORKNUM 
INIT_FORKNUM 

Definition at line 25 of file relfilenode.h.

{
    InvalidForkNumber = -1,
    MAIN_FORKNUM = 0,
    FSM_FORKNUM,
    VISIBILITYMAP_FORKNUM,
    INIT_FORKNUM

    /*
     * NOTE: if you add a new fork, change MAX_FORKNUM below and update the
     * forkNames array in catalog.c
     */
} ForkNumber;