summaryrefslogtreecommitdiff
path: root/src/include/commands/sequence.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-08-25 21:25:46 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-08-25 21:25:46 +0000
commit8e9d69d6ac76001458f0c190a35990b23abf81de (patch)
treef1b2ec4d5991f2963169b8964efcadc21d41bfd0 /src/include/commands/sequence.h
parent88b17d9c56bfd0b6d35b824e9edbce29ae241c33 (diff)
downloadpostgresql-8e9d69d6ac76001458f0c190a35990b23abf81de.tar.gz
From: Massimo Dal Zotto <dz@cs.unitn.it>
> sequence.patch > > adds the missing setval command to sequences. Owner of sequences > can now set the last value to any value between min and max > without recreating the sequence. This is useful after loading > data from external files.
Diffstat (limited to 'src/include/commands/sequence.h')
-rw-r--r--src/include/commands/sequence.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 2ffa42639b..f2186cccda 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -30,6 +30,7 @@
extern void DefineSequence(CreateSeqStmt *stmt);
extern int4 nextval(struct varlena * seqname);
extern int4 currval(struct varlena * seqname);
+extern int4 setval (struct varlena * seqname, int4 next);
extern void CloseSequences(void);
#endif /* SEQUENCE_H */