pgsql: Correct constness of a few variables.

2018-10-15 Thread Andres Freund
Correct constness of a few variables. This allows the compiler / linker to mark affected pages as read-only. There's other cases, but they're a bit more invasive, and should go through some review. These are easy. They were found with objdump -j .data -t src/backend/postgres|awk '{print $4, $5,

pgsql: Move generic slot support functions from heaptuple.c into execTu

2018-10-15 Thread Andres Freund
Move generic slot support functions from heaptuple.c into execTuples.c. heaptuple.c was never a particular good fit for slot_getattr(), slot_getsomeattrs() and slot_getmissingattrs(), but in upcoming changes slots will be made more abstract (allowing slots that contain different types of tuples),

pgsql: Move TupleTableSlots boolean member into one flag variable.

2018-10-15 Thread Andres Freund
Move TupleTableSlots boolean member into one flag variable. There's several reasons for this change: 1) It reduces the total size of TupleTableSlot / reduces alignment padding, making the commonly accessed members fit into a single cacheline (but we currently do not force proper alignment, s

pgsql: Move the replication lag tracker into heap memory.

2018-10-15 Thread Thomas Munro
Move the replication lag tracker into heap memory. Andres Freund complained about the 128KB of .bss occupied by LagTracker. It's only needed in the walsender process, so allocate it in heap memory there. Author: Thomas Munro Discussion: https://postgr.es/m/20181015200754.7y7zfuzsoux2c4ya%40alap3

pgsql: Stamp 11.0.

2018-10-15 Thread Tom Lane
Stamp 11.0. Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/19f20081df059fef87e14c8e953669bd173dd7f1 Modified Files -- configure | 18 +- configure.in | 2 +- doc/bug.template | 2 +

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Check for stack overrun in standard_ProcessUtility().

2018-10-15 Thread Tom Lane
Check for stack overrun in standard_ProcessUtility(). ProcessUtility can recurse, and indeed can be driven to infinite recursion, so it ought to have a check_stack_depth() call. This covers the reported bug (portal trying to execute itself) and a bunch of other cases that could perhaps arise some

pgsql: Translation updates

2018-10-15 Thread Peter Eisentraut
Translation updates Source-Git-URL: https://git.postgresql.org/git/pgtranslation/messages.git Source-Git-Hash: 63764ec4ef426dc469efe1cbcd9f2c45ef9fbe95 Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/6c6deadb044bd0353641aff8203fd92eb0e6606f Modified Files --

pgsql: pgbench: Report errors during run better

2018-10-15 Thread Peter Eisentraut
pgbench: Report errors during run better When an error occurs during a benchmark run, exit with a nonzero exit code and write a message at the end. Previously, it would just print the error message when it happened but then proceed to print the run summary normally and exit with status 0. To sti

pgsql: Make spelling of "acknowledgment" consistent

2018-10-15 Thread Peter Eisentraut
Make spelling of "acknowledgment" consistent I used the preferred U.S. spelling, as we do in other cases. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/35584fd05f9b104f057c700360985991f111a847 Modified Files -- doc/src/sgml/high-availability.sgml | 4

Re: pgsql: Add list of acknowledgments to release notes

2018-10-15 Thread Peter Eisentraut
On 14/10/2018 16:41, Tom Lane wrote: > Well, I don't think leaving it alone is really nice. Three of the > four warnings seem to come from a single entry: > > Şahap Aşçı > > That's copied-and-pasted from our website, where it seems to render > fine, but in the PDF file what I see is > > #ahap

pgsql: Fixes for "Glyph not available" warnings from FOP

2018-10-15 Thread Peter Eisentraut
Fixes for "Glyph not available" warnings from FOP With the PostgreSQL 11 release notes acknowledgments list, FOP reported WARNING: Glyph "?" (0x144, nacute) not available in font "Times-Roman". WARNING: Glyph "?" (0x15e, Scedilla) not available in font "Times-Roman". WARNING: Glyph "?" (0x15f, sc

pgsql: Fixes for "Glyph not available" warnings from FOP

2018-10-15 Thread Peter Eisentraut
Fixes for "Glyph not available" warnings from FOP With the PostgreSQL 11 release notes acknowledgments list, FOP reported WARNING: Glyph "?" (0x144, nacute) not available in font "Times-Roman". WARNING: Glyph "?" (0x15e, Scedilla) not available in font "Times-Roman". WARNING: Glyph "?" (0x15f, sc