postgres lihat urutan keadaan saat ini

SELECT last_value FROM sequence_name;
Stormy Stoat