#include <stdio.h>

main()

{
	char s[100];
	PQsetdb("test");
	PQexec("copy edge () to stdout");
	printf("begin copy\n");
	for (PQgetline(s,100); s[0] != '.'; PQgetline(s,100))
		printf("%s\n", s);
	PQendcopy();
	printf("done\n");
}
