be mirrored. Replace MyTableName with the name of the table that should
be mirrored.
+NOTE: DBMirror requires that every table being mirrored have a primary key
+defined.
+
5) Create the slave database.
The DBMirror system keeps the contents of mirrored tables identical on the
/****************************************************************************
* pending.c
- * $Id: pending.c,v 1.4 2002/09/05 00:43:06 tgl Exp $
+ * $Id: pending.c,v 1.5 2002/09/26 05:24:30 momjian Exp $
*
* This file contains a trigger for Postgresql-7.x to record changes to tables
* to a pending table for mirroring.
/* pplan = SPI_saveplan(pplan); */
cpKeyData = packageData(tTupleData, tTupleDesc, tpTrigData, PRIMARY);
+ if (cpKeyData == NULL)
+ {
+ elog(ERROR,"Could not determine primary key data");
+ return -1;
+ }
#if defined DEBUG_OUTPUT
elog(NOTICE, cpKeyData);
#endif