Re: COPY / extend ExclusiveLock

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Nasby <jim(at)nasby(dot)net>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: COPY / extend ExclusiveLock
Date: 2012-03-25 21:14:48
Message-ID: 20528.1332710088@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim Nasby <jim(at)nasby(dot)net> writes:
> On 3/22/12 2:13 PM, Stephen Frost wrote:
>> Has anyone been working on or considering how to improve the logic
>> around doing extends on relations to perhaps make larger extensions
>> for larger tables? Or make larger extensions when tables are growing
>> very quickly?

> I know that there's been discussion around this. Way back in the day we extended relations one page at a time. I don't remember if that was changed or not.

No, it's still on the to-do list. One issue is that you probably don't
want individual insertion queries taking big response-time hits to do
large extensions themselves --- so somehow the bulk of the work needs to
be pushed to some background process.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-03-26 01:47:30 pgsql: Replace empty locale name with implied value in CREATE DATABASE
Previous Message Jim Nasby 2012-03-25 20:43:51 Re: COPY / extend ExclusiveLock