PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sequence.h File Reference
#include "storage/lockdefs.h"
#include "utils/relcache.h"
Include dependency graph for sequence.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Relation sequence_open (Oid relationId, LOCKMODE lockmode)
 
void sequence_close (Relation relation, LOCKMODE lockmode)
 

Function Documentation

◆ sequence_close()

void sequence_close ( Relation  relation,
LOCKMODE  lockmode 
)

Definition at line 58 of file sequence.c.

59{
60 relation_close(relation, lockmode);
61}
void relation_close(Relation relation, LOCKMODE lockmode)
Definition: relation.c:205

References relation_close().

Referenced by AlterSequence(), currval_oid(), DefineSequence(), do_setval(), lastval(), nextval_internal(), pg_get_sequence_data(), pg_sequence_last_value(), ResetSequence(), and SequenceChangePersistence().

◆ sequence_open()

Relation sequence_open ( Oid  relationId,
LOCKMODE  lockmode 
)

Definition at line 37 of file sequence.c.

38{
39 Relation r;
40
41 r = relation_open(relationId, lockmode);
42
44
45 return r;
46}
static void validate_relation_kind(Relation r)
Definition: sequence.c:70
Relation relation_open(Oid relationId, LOCKMODE lockmode)
Definition: relation.c:47

References relation_open(), and validate_relation_kind().

Referenced by DefineSequence(), and lock_and_open_sequence().