Re: psql, remove include of psqlscan.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: psql, remove include of psqlscan.c
Date
Msg-id 1167.1348774129@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql, remove include of psqlscan.c  ("Karl O. Pinc" <kop@meme.com>)
Responses Re: psql, remove include of psqlscan.c  ("Karl O. Pinc" <kop@meme.com>)
List pgsql-hackers
"Karl O. Pinc" <kop@meme.com> writes:
> What I'm thinking of in libpq is the ability to give it big string
> with many sql statements and have it hand back each statement
> so the client can then submit it to the server for execution.
> What I really _want_ is to be able get a bit string of many
> sql statements from the user and return the results, statuses,
> etc. of executing each statement.  Just what psql does when,
> say, fed a file from stdin.

Just as a note --- I believe you can get that result today with
PQsendQuery followed by a PQgetResult loop.  There's no need to
provide an API that splits the string first.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal - assign result of query to psql variable
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_signal_backend() asymmetry