Re: drop/truncate table sucks for large values of shared buffers
| От | Tom Lane |
|---|---|
| Тема | Re: drop/truncate table sucks for large values of shared buffers |
| Дата | |
| Msg-id | 19465.1435505734@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: drop/truncate table sucks for large values of shared buffers (Amit Kapila <amit.kapila16@gmail.com>) |
| Ответы |
Re: drop/truncate table sucks for large values of shared buffers
|
| Список | pgsql-hackers |
Amit Kapila <amit.kapila16@gmail.com> writes:
> On Sat, Jun 27, 2015 at 7:40 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I don't like this too much because it will fail badly if the caller
>> is wrong about the maximum possible page number for the table, which
>> seems not exactly far-fetched. (For instance, remember those kernel bugs
>> we've seen that cause lseek to lie about the EOF position?)
> Considering we already have exclusive lock while doing this operation
> and nobody else can perform write on this file, won't closing and
> opening it again would avoid such problems.
On what grounds do you base that touching faith? Quite aside from
outright bugs, having lock on a table has nothing to do with whether
low-level processes such as the checkpointer can touch it.
regards, tom lane
В списке pgsql-hackers по дате отправления: