pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Cap wal_buffers to avoid a server crash when it's set very large
7+ messages / 1 participants
[nested] [flat]

* pgsql: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5ef8e1114774ea65eb03f48846e1d708ca8da4be

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/11ed4bab50ba6d80cc982cc4ae4675df705eda4b

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4e51ea8fd26f743d92cd35905eac334aafe2b1cc

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/369342cf70972a81e6be99b31593f31b73479d7f

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3a35ca5add65fb58bda52d62695a5b83cd6c0ae7

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:11  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:11 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/cd52e4a2b945403659219350c4d4c6e6539a1e11

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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: Cap wal_buffers to avoid a server crash when it's set very large
@ 2015-08-04 17:13  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Robert Haas @ 2015-08-04 17:13 UTC (permalink / raw)
  To: pgsql-committers

Cap wal_buffers to avoid a server crash when it's set very large.

It must be possible to multiply wal_buffers by XLOG_BLCKSZ without
overflowing int, or calculations in StartupXLOG will go badly wrong
and crash the server.  Avoid that by imposing a maximum value on
wal_buffers.  This will be just under 2GB, assuming the usual value
for XLOG_BLCKSZ.

Josh Berkus, per an analysis by Andrew Gierth.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b09446ed7eecc7cee6f7cc1dcc954c75c6c7570b

Modified Files
--------------
src/backend/utils/misc/guc.c |    2 +-
1 file changed, 1 insertion(+), 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-08-04 17:13 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:11 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>
2015-08-04 17:13 pgsql: Cap wal_buffers to avoid a server crash when it's set very large Robert Haas <rhaas@postgresql.org>

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