problem calling psql from another program

From: Frank Rittinger <gis(at)schnegg(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: problem calling psql from another program
Date: 2005-06-24 06:57:21
Message-ID: 42BBAED1.1090502@schnegg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello list,

I have PostgreSQL 8.0 on Windows Server 2000, and wrote a small .NET
program that creates a subprocess that executes psql with a sql script
as input (psql -U user -f script.sql).

This script runs well if I start psql from the command line and execute
it there. But within the .NET program it behaves strange: it never
finishes but the server doesn't do anything. When I kill the program
with CTRL-C than it seams as if the script gets executed. (BTW this
works fine under WinXP Pro!)

Any suggestions are welcomed.

Regards

Frank Rittinger

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sezai YILMAZ 2005-06-24 08:44:50 Non-unique index performance
Previous Message Kim Bisgaard 2005-06-24 06:55:25 Re: Propogating conditions into a query