diff options
| author | Neil Conway <neilc@samurai.com> | 2005-06-07 07:08:35 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2005-06-07 07:08:35 +0000 |
| commit | 657c098e41b0bb29d30d13d9aa1ac858a07f3493 (patch) | |
| tree | 6d55885d0e4fd2dbeec8edde846fc33dcebdcebe /src/include/catalog/pg_proc.h | |
| parent | c59887f91618b95f42a33d4c62dac35165a7910a (diff) | |
| download | postgresql-657c098e41b0bb29d30d13d9aa1ac858a07f3493.tar.gz | |
Add a function lastval(), which returns the value returned by the
last nextval() or setval() performed by the current session. Update the
docs, add regression tests, and bump the catalog version. Patch from
Dennis Björklund, various improvements by Neil Conway.
Diffstat (limited to 'src/include/catalog/pg_proc.h')
| -rw-r--r-- | src/include/catalog/pg_proc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index ebf15f8c19..9f5c2d8e0e 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.363 2005/05/20 01:29:55 neilc Exp $ + * $PostgreSQL: pgsql/src/include/catalog/pg_proc.h,v 1.364 2005/06/07 07:08:34 neilc Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -3644,6 +3644,8 @@ DATA(insert OID = 2557 ( bool PGNSP PGUID 12 f f t f i 1 16 "23" _null_ _ DESCR("convert int4 to boolean"); DATA(insert OID = 2558 ( int4 PGNSP PGUID 12 f f t f i 1 23 "16" _null_ _null_ _null_ bool_int4 - _null_ )); DESCR("convert boolean to int4"); +DATA(insert OID = 2559 ( lastval PGNSP PGUID 12 f f t f v 0 20 "" _null_ _null_ _null_ lastval - _null_ )); +DESCR("current value from last used sequence"); /* |
