Re: BR/ - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: BR/
Date
Msg-id 20090710221330.GI9382@alvh.no-ip.org
Whole thread Raw
In response to BR/  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
Responses Re: BR/
List pgsql-general
James B. Byrne wrote:

> 2009-07-10 15:59:17 EDT hll_theheart_test 216.185.71.24(49133)
> hll_theheart_db_admin : LOG:  00000: duration: 0.782 ms  statement:
> SELECT * FROM "currencies"
>
> The client program that receives this result reports that there are
> no rows returned. So where did they go"?

Is it using a different PG connection than the one doing the insert?  In
that case, it won't see the new row until the inserting transaction
commits.

BTW it seems necessary to clarify that LOCATION lines correspond to the
LOG/NOTICE/WARNING/ERROR line immediately _above_ it, not the one below.
So if you see this:

LOG: foo bar
LOCATION: somewhere line N
ERROR: baz qux
LOCATION: another line

you know what to make of it, and it's not this:

LOCATION: somewhere line N
ERROR: baz qux

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Stuart McGraw
Date:
Subject: Re: psql language
Next
From: Janet Jacobsen
Date:
Subject: change location of postmaster.pid file?