PostgreSQL Source Code  git master
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.


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_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;
41  r = relation_open(relationId, lockmode);
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().