Re: tracking scripts... - Mailing list pgsql-general

From Vick Khera
Subject Re: tracking scripts...
Date
Msg-id CALd+dcfcTRPr3BsyV5rrA77cq1qk4LVALh80_VavSpeqgntNhw@mail.gmail.com
Whole thread Raw
In response to Re: tracking scripts...  (Joey Quinn <bjquinniii@gmail.com>)
Responses Re: tracking scripts...  (Joey Quinn <bjquinniii@gmail.com>)
List pgsql-general

On Tue, Nov 26, 2013 at 12:11 PM, Joey Quinn <bjquinniii@gmail.com> wrote:
update ipv4_table set country='xx' where ipv4 between 'xxx.xxx.xxx.xxx' and 'xxx.xxx.xxx.xxx';

There are 127k lines like that (each with a different range and the appropriate country code). Each is terminated with a semi-colon. Does that make them individual transactions in postgres or not? (postgres newbie here). Is there something else I need to do for them to be treated like separate transactions?

If you did not wrap the whole thing with begin/commit then each is its own transaction. I certainly hope you have an appopriate index on that ipv4 column and it is appropriately typed.

pgsql-general by date:

Previous
From: Joey Quinn
Date:
Subject: Re: tracking scripts...
Next
From: Joey Quinn
Date:
Subject: Re: tracking scripts...