Re: inserting, index and no index - speed - Mailing list pgsql-general

From Vivek Khera
Subject Re: inserting, index and no index - speed
Date
Msg-id x78zizlqgq.fsf@yertle.kciLink.com
Whole thread Raw
In response to Re: inserting, index and no index - speed  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: inserting, index and no index - speed
List pgsql-general
>>>>> "TL" == Tom Lane <tgl@sss.pgh.pa.us> writes:

TL> Everything is always a transaction in Postgres.  If you don't say
TL> begin/end, then there's an implicit begin and end around each individual
TL> query.  So your first set of tests were paying transaction commit
TL> overhead for each insert.

This doesn't seem to hold exactly for INSERTs involving sequences as
default values.  Even if the insert fails for some other constraint,
the sequence is incremented.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/

pgsql-general by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: Getting interval in seconds?
Next
From: "Fred J"
Date:
Subject: problem with me or postgres ?