Re: Automatic PK values not added to new rows

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Automatic PK values not added to new rows
Дата
Msg-id ae9e42e9-6464-a262-a061-a4cc75c224cd@aklaver.com
обсуждение исходный текст
Ответ на Re: Automatic PK values not added to new rows  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Automatic PK values not added to new rows  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On 5/25/22 11:15 AM, Rich Shepard wrote:
> On Wed, 25 May 2022, Adrian Klaver wrote:
> 
>> Do:
>> select * from people_person_nbr_seq;
>> and report back the results.
> 
> Adrian,
> 
> Huh!
> bustrac=# select * from people_person_nbr_seq;
>   last_value | log_cnt | is_called ------------+---------+-----------
>          683 |      32 | t
> (1 row)
> 
> It's out of sync with
>   select max(person_nbr) from people;

What is max(person_nbr)?

> 
> Is there a way for me to synchronize the two?
> 
> Thanks,
> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



В списке pgsql-general по дате отправления:

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: Automatic PK values not added to new rows
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Automatic PK values not added to new rows