Re: Serial column has suddenly stopped working

From: Richard Huxton <dev(at)archonet(dot)com>
To: Malcolm Warren <malcolm(at)villeinitalia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Serial column has suddenly stopped working
Date: 2004-12-16 13:03:14
Message-ID: 41C18792.8030309@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Malcolm Warren wrote:
> I have been using a serial column in my most important postgres table
> for a couple of years.
>
> But today it has suddenly started assigning zero instead of the next
> number, which clearly is causing chaos.
> I have restarted Postgres, but it has not solved the problem. I cannot
> re-assign the serial number because it is tied to other tables.
> Anybody had this problem??
>
> I have reached number 14954 which we can't exactly call a high number.
>
> The column description is as follows:
>
> Name srl
> type bigint
> modifiers default nextval(booking_srl_seq::text)

What happens if you go SELECT nextval('booking_srl_seq') - do you get
the expected number?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2004-12-16 13:05:56 Re: DB Slowing Down
Previous Message Alex 2004-12-16 12:54:32 DB Slowing Down