To build the trigger run make on the "Makefile" in the DBMirror directory.
-Postgres-7.3 Make Instructions:
+Postgres-7.3 & 7.4 Make Instructions:
If you have already run "configure" in the pgsql-server directory
then run "make" in the dbmirror directory to compile the trigger.
Run the following commands
- gcc -fpic -I/usr/local/pgsql/include/server -c pending.c -DNOSCHEMAS
+ gcc -fpic -I/usr/local/pgsql/include/server -c pending.c -DNOSCHEMAS -DNODROPCOLUMN
ld -shared -o pending.so pending.o
Assuming the postgres include files are in /usr/local/pgsql/include/server.
Mandrake Linux 8.0(Limited Testing)
-Postgres 7.2
-Postgres 7.3
+ -Postgres 7.4
-Perl 5.6
continue;
}
} /* KeyUsage!=ALL */
+#ifndef NODROPCOLUMN
+ if(tTupleDesc->attrs[iColumnCounter-1]->attisdropped)
+ {
+ /**
+ * This column has been dropped.
+ * Do not mirror it.
+ */
+ continue;
+ }
+#endif
cpFieldName = DatumGetPointer(NameGetDatum(&tTupleDesc->attrs
[iColumnCounter - 1]->attname));
#if defined DEBUG_OUTPUT