thank you friend for your response
i solved my problem to some extent
i used sumthing like this
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
x|xx|xxxx
\.
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
1|11|1111
\.
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
1|22|222222
\.
after every record i am specifying an end marker
is there any possibility to have only one end marker i.e at the end of last record like this
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
x|xx|xxxx
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
1|11|1111
copy mytable(xx,xx,xxx) from stdin with DELIMITER '|';
1|22|222222
\.