pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Simplify tape block format.
3+ messages / 3 participants
[nested] [flat]
* pgsql: Simplify tape block format.
@ 2016-12-22 16:45 Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Heikki Linnakangas @ 2016-12-22 16:45 UTC (permalink / raw)
To: pgsql-committers
Simplify tape block format.
No more indirect blocks. The blocks form a linked list instead.
This saves some memory, because we don't need to have a buffer in memory to
hold the indirect block (or blocks). To reflect that, TAPE_BUFFER_OVERHEAD
is reduced from 3 to 1 buffer, which allows using more memory for building
the initial runs.
Reviewed by Peter Geoghegan and Robert Haas.
Discussion: https://www.postgresql.org/message-id/34678beb-938e-646e-db9f-a7def5c44ada%40iki.fi
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/01ec25631fe0eae6af67c29c61a358dc6b92ed3c
Modified Files
--------------
src/backend/utils/sort/logtape.c | 627 +++++++++++--------------------------
src/backend/utils/sort/tuplesort.c | 65 ++--
src/include/utils/logtape.h | 4 +-
3 files changed, 218 insertions(+), 478 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Simplify tape block format.
@ 2016-12-26 21:52 Peter Geoghegan <pg@heroku.com>
parent: Heikki Linnakangas <heikki.linnakangas@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Geoghegan @ 2016-12-26 21:52 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers
On Thu, Dec 22, 2016 at 8:45 AM, Heikki Linnakangas
<heikki.linnakangas@iki.fi> wrote:
> Simplify tape block format.
>
> No more indirect blocks. The blocks form a linked list instead.
There is still one remaining reference to indirect blocks that you
missed in comments above LogicalTapeRewindForWrite().
--
Peter Geoghegan
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Simplify tape block format.
@ 2017-01-30 08:54 Heikki Linnakangas <hlinnaka@iki.fi>
parent: Peter Geoghegan <pg@heroku.com>
0 siblings, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2017-01-30 08:54 UTC (permalink / raw)
To: Peter Geoghegan <pg@heroku.com>; +Cc: pgsql-committers
On 12/26/2016 11:52 PM, Peter Geoghegan wrote:
> On Thu, Dec 22, 2016 at 8:45 AM, Heikki Linnakangas
> <heikki.linnakangas@iki.fi> wrote:
>> Simplify tape block format.
>>
>> No more indirect blocks. The blocks form a linked list instead.
>
> There is still one remaining reference to indirect blocks that you
> missed in comments above LogicalTapeRewindForWrite().
Thanks, fixed!
- Heikki
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-01-30 08:54 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22 16:45 pgsql: Simplify tape block format. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2016-12-26 21:52 ` Peter Geoghegan <pg@heroku.com>
2017-01-30 08:54 ` Heikki Linnakangas <hlinnaka@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox