Re: connecting using libpq breaks printf

Поиск
Список
Период
Сортировка
От David Wilson
Тема Re: connecting using libpq breaks printf
Дата
Msg-id e7f9235d0902180836j193777fan33b88d45c5dc15ac@mail.gmail.com
обсуждение исходный текст
Ответ на connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
Ответы Re: connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
Список pgsql-general
On Wed, Feb 18, 2009 at 9:47 AM, Joey Morris <rjmorris12@gmail.com> wrote:

> I expected this program to print "connecting", but in fact I get no output
> whatsoever. If I comment out the PQconnectdb and PQfinish lines, I see
> "connecting" as expected. What could be going on here?

Try adding "fflush(stderr);" after your fprintf() call. If the
connection is hanging and output hasn't been flushed, you wouldn't see
much.


--
- David T. Wilson
david.t.wilson@gmail.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Aurimas Černius
Дата:
Сообщение: Re: connecting using libpq breaks printf
Следующее
От: Marko Kreen
Дата:
Сообщение: Re: [Plproxy-users] Two-phase commmit, plpgsql and plproxy