-- erServer
-- Slave server setup for erServer demonstration implementation
-- (c) 2000 Vadim Mikheev, PostgreSQL Inc.
--

drop table _RSERV_SLAVE_TABLES_;

create table _RSERV_SLAVE_TABLES_
(
	tname	name not null,	-- table name
	cname	name not null,	-- column name
	reloid	oid primary key, -- table oid
	key	int4 not null	-- key attnum 
);

drop table _RSERV_SLAVE_SYNC_;

create table _RSERV_SLAVE_SYNC_
(
	syncid		int4 not null,
	synctime	timestamp
);
