Tue Apr 4 10:56:29 PDT 2006
- Previous message: [Slony1-general] primary key for slony
- Next message: [Slony1-general] primary key for slony
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Christopher Browne wrote: >Miguel <mmiranda at 123.com.sv> writes: > > > >>hi, this a design database question , i have a detail table that only >>have 4 columns, i want ot replicate it with slony: >> >>CREATE TABLE horarios_general >>( >> idplan int4 NOT NULL, >> idhorario int4 NOT NULL, >> dia_inicio int4 NOT NULL, >> dia_fin int4 NOT NULL, >> hora_inicio time NOT NULL, >> hora_fin time NOT NULL >>) >> >>it doesnt have a primary key, would it be a problem if the key is >>confirmed of all the table's columns?, is that recommended? >> >> > >You MUST have a candidate for primary key. > >It tends to be most efficient if the PK has fewer columns rather than >more, but really, your decision should be based on what the best sort >of primary key should be for the table. > > Ok, the easiest way is create a secuence, but i really need that all the columns have unique values, so i will go with the multiple column key, only 6 columns should not be a problem to slony , should it? :-) thanks
- Previous message: [Slony1-general] primary key for slony
- Next message: [Slony1-general] primary key for slony
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list