postgresql/src/backend
Robert Haas 497171d3e2 shm_mq: Have the receiver set the sender's less frequently.
Instead of marking data from the ringer buffer consumed and setting the
sender's latch for every message, do it only when the amount of data we
can consume is at least 1/4 of the size of the ring buffer, or when no
data remains in the ring buffer.  This is dramatically faster in my
testing; apparently, the savings from sending signals less frequently
outweighs the benefit of letting the sender know about available buffer
space sooner.

Patch by me, reviewed by Andres Freund and tested by Rafia Sabih.

Discussion: http://postgr.es/m/CA+TgmoYK7RFj6r7KLEfSGtYZCi3zqTRhAz8mcsDbUAjEmLOZ3Q@mail.gmail.com
2018-03-02 12:20:30 -05:00
..
access Make gistvacuumcleanup() count the actual number of index tuples. 2018-03-02 11:22:42 -05:00
bootstrap Allow UNIQUE indexes on partitioned tables 2018-02-19 17:40:00 -03:00
catalog Use ereport not elog for some corrupt-HOT-chain reports. 2018-03-01 16:23:45 -05:00
commands Prevent dangling-pointer access when update trigger returns old tuple. 2018-02-27 13:28:02 -05:00
executor Fix assertion failure when Parallel Append is run serially. 2018-02-28 10:58:27 -05:00
foreign Remove bogus "extern" annotations on function definitions. 2018-02-19 12:07:44 -05:00
lib Minor clean-up in dshash.{c,h}. 2018-03-01 16:25:46 -08:00
libpq Fix up references to scram-sha-256 2018-01-30 16:50:30 -05:00
main Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Support parameters in CALL 2018-02-22 21:36:48 -05:00
optimizer Fix IOS planning when only some index columns can return an attribute. 2018-03-01 15:35:03 -05:00
parser Support parameters in CALL 2018-02-22 21:36:48 -05:00
po Translation updates 2017-08-07 13:55:34 -04:00
port Support huge pages on Windows 2018-01-21 15:40:46 +01:00
postmaster Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
regex Update copyright for 2018 2018-01-02 23:30:12 -05:00
replication Fix filtering of unsupported relations in logical replication 2018-02-23 22:13:21 -05:00
rewrite Fix application of identity values in some cases 2018-02-02 14:39:10 -05:00
snowball Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
statistics Update copyright for 2018 2018-01-02 23:30:12 -05:00
storage shm_mq: Have the receiver set the sender's less frequently. 2018-03-02 12:20:30 -05:00
tcop Support parameters in CALL 2018-02-22 21:36:48 -05:00
tsearch Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
utils Remove out-of-date comment about formrdesc(). 2018-03-01 12:03:29 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyright for 2018 2018-01-02 23:30:12 -05:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
nls.mk Translation updates 2017-05-15 12:19:54 -04:00