Add pg_sequences view

Peter Eisentraut <peter_e@gmx.net>

Commit: 67dc4ccbb2e1c27da823eced66d9217a5652cbb0
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2016-11-18T19:59:03Z
Releases: 10.0
Add pg_sequences view

Like pg_tables, pg_views, and others, this view contains information
about sequences in a way that is independent of the system catalog
layout but more comprehensive than the information schema.

To help implement the view, add a new internal function
pg_sequence_last_value() to return the last value of a sequence.  This
is kept separate from pg_sequence_parameters() to separate querying
run-time state from catalog-like information.

Reviewed-by: Andreas Karlsson <andreas@proxel.se>

Files

Documentation touched