Need help to implement Primary Key. - Mailing list pgsql-admin

From Gambhir Singh
Subject Need help to implement Primary Key.
Date
Msg-id CAHOGQfWo-2vZMQN1U8dKF=AZtrbJrCT8pGBAY554P4jW2Z6JEw@mail.gmail.com
Whole thread Raw
Responses Re: Need help to implement Primary Key.
List pgsql-admin
Hi,
I have a table with a record count of ~500 million (496,098,390). There is no primary key in this table. Now I need to set up a primary key on this table. I can't find a way to set up a primary key. I tried to add a new column with IDENTITY but it is not allowing null value for existing rows and I don't know how to update the unique value for existing records.

Please help me to implement the same.

Thanks & Regards
Gambhir Singh

pgsql-admin by date:

Previous
From: Edwin UY
Date:
Subject: Re: How to output psql to file AND screen/console
Next
From: Thomas Kellerer
Date:
Subject: Re: Need help to implement Primary Key.