Hi, I am having a very small tables with at most 5 records that holds some labels. I am using Postgres.
The structure is as follows:
id - smallint label - varchar(100)
The table will be used mainly to reference the rows from other tables. The question is if it's really necessary to have a primary key on id or to have just an index on the id or have them both?
I did read about indexes and primary keys and I understand that this depends quite a lot on what's the table going to be used for:
http://stackoverflow.com/questions/5600/tables-with-no-primary-key
Edit: I was going to ask about having a primary key or an index or have them both. I edited the question.