Bump default value for sequence_range to 1000.
authorPavan Deolasee <[email protected]>
Wed, 6 Jan 2016 12:50:08 +0000 (18:20 +0530)
committerPavan Deolasee <[email protected]>
Wed, 6 Jan 2016 12:50:08 +0000 (18:20 +0530)
This shows good improvement for workloads which repeatedly asks for sequence
values. We already override the sequence_range value to 1000 for COPY and it
makes a lot of sense to do the same for INSERTs

src/backend/utils/misc/guc.c

index ad4a28bdffe1fe57c830f2b8405614bb825b51c7..b3c2ef7be894c24f6abf1c1d98a2cf70456ec887 100644 (file)
@@ -2852,7 +2852,7 @@ static struct config_int ConfigureNamesInt[] =
                        NULL,
                },
                &SequenceRangeVal,
-               1, 1, INT_MAX,
+               1000, 1, INT_MAX,
                NULL, NULL, NULL
        },