pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. 7+ messages / 1 participants [nested] [flat]
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ebc7d928a761a6e1d56fc23caf1079722821dc0e Modified Files -------------- src/backend/executor/nodeHash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f2fc98fb8e060b2243aba4cfe8b206f54bcc5a4f Modified Files -------------- src/backend/executor/nodeHash.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/4075fc4b97f9b4988250ede0288849bf78cab90c Modified Files -------------- src/backend/executor/nodeHash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e5c94c7bbcf091617f0720a3ccbe898cd8beff17 Modified Files -------------- src/backend/executor/nodeHash.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/d84cc40e4bbaa3e708029e0744cba1566ebff324 Modified Files -------------- src/backend/executor/nodeHash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/d637a899ca2bfc966614dfa8498b9023f4088b31 Modified Files -------------- src/backend/executor/nodeHash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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] 7+ messages in thread
* pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. @ 2015-10-04 19:55 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2015-10-04 19:55 UTC (permalink / raw) To: pgsql-committers Further twiddling of nodeHash.c hashtable sizing calculation. On reflection, the submitted patch didn't really work to prevent the request size from exceeding MaxAllocSize, because of the fact that we'd happily round nbuckets up to the next power of 2 after we'd limited it to max_pointers. The simplest way to enforce the limit correctly is to round max_pointers down to a power of 2 when it isn't one already. (Note that the constraint to INT_MAX / 2, if it were doing anything useful at all, is properly applied after that.) Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0867e0ad53598e0f700ecce5f8472da4451eeeb6 Modified Files -------------- src/backend/executor/nodeHash.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 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] 7+ messages in thread
end of thread, other threads:[~2015-10-04 19:55 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us> 2015-10-04 19:55 pgsql: Further twiddling of nodeHash.c hashtable sizing calculation. Tom Lane <tgl@sss.pgh.pa.us>
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