72 if (r->
rd_rel->relkind != RELKIND_SEQUENCE)
74 (
errcode(ERRCODE_WRONG_OBJECT_TYPE),
75 errmsg(
"cannot open relation \"%s\"",
static void validate_relation_kind(Relation r)
Relation sequence_open(Oid relationId, LOCKMODE lockmode)
void sequence_close(Relation relation, LOCKMODE lockmode)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
int errdetail_relkind_not_supported(char relkind)
#define RelationGetRelationName(relation)
void relation_close(Relation relation, LOCKMODE lockmode)
Relation relation_open(Oid relationId, LOCKMODE lockmode)