PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/relation.h"
#include "access/sequence.h"
#include "utils/rel.h"
Go to the source code of this file.
Functions | |
static void | validate_relation_kind (Relation r) |
Relation | sequence_open (Oid relationId, LOCKMODE lockmode) |
void | sequence_close (Relation relation, LOCKMODE lockmode) |
Definition at line 58 of file sequence.c.
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().
Definition at line 37 of file sequence.c.
References relation_open(), and validate_relation_kind().
Referenced by DefineSequence(), and lock_and_open_sequence().
|
inlinestatic |
Definition at line 70 of file sequence.c.
References ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, RelationData::rd_rel, and RelationGetRelationName.
Referenced by sequence_open().