Angshu Kar schrieb: > Thanks Andreas. But how can I run this from the pgAdmin III Query tool > in a WinXP m/c? You dont. There is the function for saving query data to file already built in. Just press the button (documentation or tooltips tell you) and select the format of your csv in the requester that appears.