Re: Transaction question - Mailing list pgsql-general

From Marcin Mańk
Subject Re: Transaction question
Date
Msg-id CAK61fk4GDKPWneAi6ej3tEr1Dnf=GL2su=KuMqOXnYw_L8-TgA@mail.gmail.com
Whole thread Raw
In response to Transaction question  (Jeff Ross <jross@wykids.org>)
Responses Re: Transaction question
List pgsql-general


On Tue, Jul 10, 2012 at 10:06 PM, Jeff Ross <jross@wykids.org> wrote:
 
2012-06-19 15:37:36.283752500 <www%wykids> LOG:  statement: update survey_response set srv_resp_submitted = now() where srv_resp_srv_id = 2 and srv_resp_pp_id = 25399

jross@wykids localhost# select * from survey_response where srv_resp_submitted is not null and srv_resp_srv_id = 2 and srv_resp_pp_id not in (select srv_answers_pp_id from survey_answers where srv_answers_srv_id = 2);
 srv_resp_id | srv_resp_srv_id | srv_resp_pp_id | srv_resp_invite       |    srv_resp_first_look     | srv_resp_submitted
-------------+-----------------+----------------+----------------------------+----------------------------+----------------------------
        5674 |               2 |          25399 | 2012-06-19 15:12:49.589233 | 2012-06-19 15:33:05.547012 | 2012-06-19 15:38:16.724393


The timestamps don't match - something updated the record after 15:37:36  . 
Also, are the fields like srv_answers_srv_id character fields? The inserts are quoting them like varchars, which seems odd.

Greetings
Marcin

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Transaction question
Next
From: Jeff Ross
Date:
Subject: Re: Transaction question