Fri Nov 24 13:11:56 PST 2006
- Previous message: [Slony1-general] Error in setting up slony
- Next message: [Slony1-general] Error in setting up slony
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* Andreas Kretschmer <akretschmer at spamfence.net> [061123 13:55]:
> Pradeep Parmar <parmarpradeep at gmail.com> schrieb:
>
> > Hi,
> >
> > I was trying setting up slony on two diff. nodes. Node A as master server and
> > Node B as slave
> > Database has just two tables , one of the tables doesn't has a primary key so i
> > have used the table add key in the slonik commands script. I'm getting the
> > below error
> >
> >
> > <stdin>:7: PGRES_FATAL_ERROR select "_slash".determineIdxnameUnique
> > ('public.staff', NULL); - ERROR: Slony-I: table "public"."staff" has no
> > primary key
>
> You need a primary key on each replicated table. If you haven't a
> primary key, you *must* add one. You can use slonik for this:
>
> table add key (node id = 1, fully qualified name = 'public.staff');
Although in the practice, it's way less painful to have an application
level key added. table add key generated keys tend to be painful when
it comes to backups.
Andreas
- Previous message: [Slony1-general] Error in setting up slony
- Next message: [Slony1-general] Error in setting up slony
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list