Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab9e0e7

Browse files
committed
Add shared tuplestores.
SharedTuplestore allows multiple participants to write into it andthen read the tuples back from it in parallel. Each reader receivespartial results.For now it always uses disk files, but other buffering policies andother kinds of scans (ie each reader receives complete results) may beuseful in future.The upcoming parallel hash join feature will use this facility.Author: Thomas MunroReviewed-By: Peter Geoghegan, Andres Freund, Robert HaasDiscussion:https://postgr.es/m/CAEepm=2W=cOkiZxcg6qiFQP-dHUe09aqTrEMM7yJDrHMhDv_RA@mail.gmail.com
1 parent25d5326 commitab9e0e7

File tree

6 files changed

+699
-1
lines changed

6 files changed

+699
-1
lines changed

‎src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ RegisterLWLockTranches(void)
516516
"session_record_table");
517517
LWLockRegisterTranche(LWTRANCHE_SESSION_TYPMOD_TABLE,
518518
"session_typmod_table");
519+
LWLockRegisterTranche(LWTRANCHE_SHARED_TUPLESTORE,
520+
"shared_tuplestore");
519521
LWLockRegisterTranche(LWTRANCHE_TBM,"tbm");
520522
LWLockRegisterTranche(LWTRANCHE_PARALLEL_APPEND,"parallel_append");
521523

‎src/backend/utils/sort/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
1414

1515
overrideCPPFLAGS := -I. -I$(srcdir)$(CPPFLAGS)
1616

17-
OBJS = logtape.o sortsupport.o tuplesort.o tuplestore.o
17+
OBJS = logtape.osharedtuplestore.osortsupport.o tuplesort.o tuplestore.o
1818

1919
tuplesort.o: qsort_tuple.c
2020

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp