Re: libpq sendQuery -- getResult not returning until all queries complete - Mailing list pgsql-general

From Daniel Verite
Subject Re: libpq sendQuery -- getResult not returning until all queries complete
Date
Msg-id c35ef788-7427-44b6-bbc0-cc09f25300fd@mm
Whole thread Raw
In response to Re: libpq sendQuery -- getResult not returning until all queries complete  (Kelly Burkhart <kelly.burkhart@gmail.com>)
Responses Re: libpq sendQuery -- getResult not returning until all queries complete
List pgsql-general
    Kelly Burkhart wrote:

> #define COMMANDS "select current_timestamp; select pg_sleep(5); select
> current_timestamp"

You should use current_clock() instead of current_timestamp, because
current_timestamp returns a fixed value throughout a transaction.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Kelly Burkhart
Date:
Subject: Re: libpq sendQuery -- getResult not returning until all queries complete
Next
From: Merlin Moncure
Date:
Subject: Re: libpq sendQuery -- getResult not returning until all queries complete