Re: PQgetResultSet Problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Deepa K <kdeepa(at)midascomm(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQgetResultSet Problem
Date: 2003-08-19 05:21:07
Message-ID: 20346.1061270467@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Deepa K <kdeepa(at)midascomm(dot)com> writes:
> But we run a set of commands in psql command line, if any one of query
> fails, other commands gets executed. Why this is possible in psql and
> not using application.

psql splits your input at semicolons, and ships each command to the
backend in a separate PQexec. You're wasting your time suggesting
that we should change this behavior in either PQexec or psql --- we'd
break far too many applications for far too little gain.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2003-08-19 05:32:21 Re: array concat, et al patch
Previous Message Deepa K 2003-08-19 04:52:58 Re: PQgetResultSet Problem