Questions tagged [database-sequence]

A database sequence is a number generator that produces unique numbers in a scalable and concurrency safe way.

A database sequence is a number generator that produces unique numbers in a scalable and concurrency safe way.

Once a sequence value has been generated, this number is never re-used (unless a sequence is defined to have a maximum value and cycle through its possible range).

Sequence values are not guaranteed to be gapless but offer a scalable and fast way to generate unique numbers even in high concurrency situations.

Sequences are supported by nearly all modern DBMS. However, the syntax to create them and to obtain a number from them differs between the DBMS products.

106 questions
-3
votes
1 answer

How to get all the sequences and columns to which sequence is applied using single query

I want to get all the sequences created, tables and columns to which that sequence is applied in a database using a single query in PostgreSQL. Any direct or indirect method is helpful.
Jagadeeswar
  • 311
  • 2
  • 5
  • 14
1 2 3 4 5 6 7
8