From: | Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com> |
---|---|
To: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
Cc: | PostgreSQL mailing lists <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: does dml operations load the blocks to the shared buffers ? |
Date: | 2019-01-10 10:40:22 |
Message-ID: | CA+t6e1mrec+2pyp6tprMx1ohEzE0DxBxozgr5XUXUz5q5+TV5Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
. Lets assume the amount of data I insert is bigger than the
shared_buffers. I didnt commit the transaction yet, the data will be saved
on temp files until I commit ?
What happens if I have in my transaction,I did a lot of changes and I
filled the wal_buffers / shared buffers but I still didnt commit. How the
database will handle it ?
בתאריך יום ה׳, 10 בינו׳ 2019 ב-10:55 מאת Guillaume Lelarge <
guillaume(at)lelarge(dot)info>:
> Le jeu. 10 janv. 2019 à 09:07, Mariel Cherkassky <
> mariel(dot)cherkassky(at)gmail(dot)com> a écrit :
>
>> Hey,
>> It is clear that when we query some data, if that data isnt in the shared
>> buffers pg will go bring the relevant blocks from the disk to the shared
>> buffers. I wanted to ask if the same logic works with
>> dml(insert/update/delete). I'm familiar with the writing logic, that the
>> checkpointer is the process that writing the data changes into the data
>> files during every checkpoint and that the commit write the changes from
>> the wal buffers to to the wal files. I wanted to ask about a situation
>> where we run dmls and that data isnt available in the shared buffers.
>>
>>
> It works the same.
>
>
> --
> Guillaume.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2019-01-10 12:23:40 | Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0 |
Previous Message | Mariel Cherkassky | 2019-01-10 10:36:25 | Re: postgresql unix socket connections |