[COMMITTERS] pgsql: Fix typos in comments.

2013-10-24 Thread Heikki Linnakangas
Fix typos in comments. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/4d6d425ab8d9b00c097d8bb8ce85302ea62887a3 Modified Files -- src/backend/access/transam/xlogreader.c |8 1 file changed, 4 insertions(+), 4 deletions(-) -- Sent via pgsql-

[COMMITTERS] pgsql: Fix typos in comments.

2013-10-24 Thread Heikki Linnakangas
Fix typos in comments. Branch -- REL9_3_STABLE Details --- http://git.postgresql.org/pg/commitdiff/80eba5981e0fa8af93c3ea173745a13f2f38a043 Modified Files -- src/backend/access/transam/xlogreader.c |8 1 file changed, 4 insertions(+), 4 deletions(-) -- Sent via

[COMMITTERS] pgsql: Fix memory leak when an empty ident file is reloaded.

2013-10-24 Thread Heikki Linnakangas
Fix memory leak when an empty ident file is reloaded. Hari Babu Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/bb598456dcdad5080f6dee980bc5cc94d2e9f574 Modified Files -- src/backend/libpq/hba.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(

[COMMITTERS] pgsql: Fix memory leak when an empty ident file is reloaded.

2013-10-24 Thread Heikki Linnakangas
Fix memory leak when an empty ident file is reloaded. Hari Babu Branch -- REL9_3_STABLE Details --- http://git.postgresql.org/pg/commitdiff/b0aa17706e210dec4e8d744eac1682e0c6a0a3b0 Modified Files -- src/backend/libpq/hba.c |6 -- 1 file changed, 4 insertions(+), 2 del

[COMMITTERS] pgsql: Plug memory leak when reloading config file.

2013-10-24 Thread Heikki Linnakangas
Plug memory leak when reloading config file. The absolute path to config file was not pfreed. There are probably more small leaks here and there in the config file reload code and assign hooks, and in practice no-one reloads the config files frequently enough for it to be a problem, but this one i

[COMMITTERS] pgsql: Plug memory leak when reloading config file.

2013-10-24 Thread Heikki Linnakangas
Plug memory leak when reloading config file. The absolute path to config file was not pfreed. There are probably more small leaks here and there in the config file reload code and assign hooks, and in practice no-one reloads the config files frequently enough for it to be a problem, but this one i

[COMMITTERS] pgsql: Improve documentation of random() function.

2013-10-24 Thread Heikki Linnakangas
Improve documentation of random() function. Move random() and setseed() to a separate table, to have them grouped together. Also add a notice that random() is not cryptographically secure. Original patch by Honza Horak, although I didn't use his version. Branch -- master Details --- htt

[COMMITTERS] pgsql: Increase the number of different values used when seeding random

2013-10-24 Thread Heikki Linnakangas
Increase the number of different values used when seeding random(). When a backend process is forked, we initialize the system's random number generator with srandom(). The seed used is derived from the backend's pid and the timestamp. However, we only used the microseconds part of the timestamp,

[COMMITTERS] pgsql: Use improved vsnprintf calling logic in more places.

2013-10-24 Thread Tom Lane
Use improved vsnprintf calling logic in more places. When we are using a C99-compliant vsnprintf implementation (which should be most places, these days) it is worth the trouble to make use of its report of how large the buffer needs to be to succeed. This patch adjusts stringinfo.c and some misc

[COMMITTERS] pgsql: Ignore SIGSYS during initdb.

2013-10-24 Thread Tom Lane
Ignore SIGSYS during initdb. This prevents the recently-added probe for shm_open() from crashing on platforms that are impolite enough to deliver a signal rather than returning ENOSYS for an unimplemented kernel call. At least on the one known example (HPUX 10.20), ignoring SIGSYS does result in