[COMMITTERS] pgsql: Add dummy PQsslAttributes function for non-SSL builds.

2015-02-03 Thread Heikki Linnakangas
Add dummy PQsslAttributes function for non-SSL builds. All the other new SSL information functions had dummy versions in be-secure.c, but I missed PQsslAttributes(). Oops. Surprisingly, the linker did not complain about the missing function on most platforms represented in the buildfarm, even thou

Re: [COMMITTERS] pgsql: Add API functions to libpq to interrogate SSL related stuff.

2015-02-03 Thread Tom Lane
Heikki Linnakangas writes: > Add API functions to libpq to interrogate SSL related stuff. This patch is one large brick shy of a load: it creates exported libpq functions but fails to ensure they always exist. That's why jacana is unhappy; though TBH I'm astonished that any non-ssl-enabled build

[COMMITTERS] pgsql: Tag refs/tags/REL9_0_19 was created

2015-02-03 Thread pgsql
Tag refs/tags/REL9_0_19 was created. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

[COMMITTERS] pgsql: Tag refs/tags/REL9_3_6 was created

2015-02-03 Thread pgsql
Tag refs/tags/REL9_3_6 was created. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

[COMMITTERS] pgsql: Tag refs/tags/REL9_4_1 was created

2015-02-03 Thread pgsql
Tag refs/tags/REL9_4_1 was created. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

[COMMITTERS] pgsql: Tag refs/tags/REL9_2_10 was created

2015-02-03 Thread pgsql
Tag refs/tags/REL9_2_10 was created. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

[COMMITTERS] pgsql: Tag refs/tags/REL9_1_15 was created

2015-02-03 Thread pgsql
Tag refs/tags/REL9_1_15 was created. -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers

[COMMITTERS] pgsql: Remove ill-conceived Assertion in ProcessClientWriteInterrupt().

2015-02-03 Thread Andres Freund
Remove ill-conceived Assertion in ProcessClientWriteInterrupt(). It's perfectly fine to have blocked interrupts when ProcessClientWriteInterrupt() is called. In fact it's commonly the case when emitting error reports. And we deal with that correctly. Even if that'd not be the case, it'd be a bad

[COMMITTERS] pgsql: Remove remnants of ImmediateInterruptOK handling.

2015-02-03 Thread Andres Freund
Remove remnants of ImmediateInterruptOK handling. Now that nothing sets ImmediateInterruptOK to true anymore, we can remove all the supporting code. Reviewed-By: Heikki Linnakangas Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/2505ce0be0b686c5a0a5141e9d080e7fdc359

[COMMITTERS] pgsql: Remove the option to service interrupts during PGSemaphoreLock()

2015-02-03 Thread Andres Freund
Remove the option to service interrupts during PGSemaphoreLock(). The remaining caller (lwlocks) doesn't need that facility, and we plan to remove ImmedidateInterruptOK entirely. That means that interrupts can't be serviced race-free and portably anyway, so there's little reason for keeping the fe

[COMMITTERS] pgsql: Move deadlock and other interrupt handling in proc.c out of sign

2015-02-03 Thread Andres Freund
Move deadlock and other interrupt handling in proc.c out of signal handlers. Deadlock checking was performed inside signal handlers up to now. While it's a remarkable feat to have made this work reliably, it's quite complex to understand why that is the case. Partially it worked due to the assumpt

[COMMITTERS] pgsql: Don't allow immediate interrupts during authentication anymore.

2015-02-03 Thread Andres Freund
Don't allow immediate interrupts during authentication anymore. We used to handle authentication_timeout by setting ImmediateInterruptOK to true during large parts of the authentication phase of a new connection. While that happens to work acceptably in practice, it's not particularly nice and ha

[COMMITTERS] pgsql: Remove unused "m" field in LSEG.

2015-02-03 Thread Tom Lane
Remove unused "m" field in LSEG. This field has been unreferenced since 1998, and does not appear in lseg values stored on disk (since sizeof(lseg) is only 32 bytes according to pg_type). There was apparently some idea of maintaining it just in values appearing in memory, but the bookkeeping requ

[COMMITTERS] pgsql: Process 'die' interrupts while reading/writing from the client s

2015-02-03 Thread Andres Freund
Process 'die' interrupts while reading/writing from the client socket. Up to now it was impossible to terminate a backend that was trying to send/recv data to/from the client when the socket's buffer was already full/empty. While the send/recv calls itself might have gotten interrupted by signals

[COMMITTERS] pgsql: Use a nonblocking socket for FE/BE communication and block using

2015-02-03 Thread Andres Freund
Use a nonblocking socket for FE/BE communication and block using latches. This allows to introduce more elaborate handling of interrupts while reading from a socket. Currently some interrupt handlers have to do significant work from inside signal handlers, and it's very hard to correctly write co

[COMMITTERS] pgsql: Fix breakage in GEODEBUG debug code.

2015-02-03 Thread Tom Lane
Fix breakage in GEODEBUG debug code. LINE doesn't have an "m" field (anymore anyway). Also fix unportable assumption that %x can print the result of pointer subtraction. In passing, improve single_decode() in minor ways: * Remove unnecessary leading-whitespace skip (strtod does that already). *

[COMMITTERS] pgsql: Fix breakage in GEODEBUG debug code.

2015-02-03 Thread Tom Lane
Fix breakage in GEODEBUG debug code. LINE doesn't have an "m" field (anymore anyway). Also fix unportable assumption that %x can print the result of pointer subtraction. In passing, improve single_decode() in minor ways: * Remove unnecessary leading-whitespace skip (strtod does that already). *

[COMMITTERS] pgsql: Add API functions to libpq to interrogate SSL related stuff.

2015-02-03 Thread Heikki Linnakangas
Add API functions to libpq to interrogate SSL related stuff. This makes it possible to query for things like the SSL version and cipher used, without depending on OpenSSL functions or macros. That is a good thing if we ever get another SSL implementation. PQgetssl() still works, but it should be

[COMMITTERS] pgsql: Refactor page compactifying code.

2015-02-03 Thread Heikki Linnakangas
Refactor page compactifying code. The logic to compact away removed tuples from page was duplicated with small differences in PageRepairFragmentation, PageIndexMultiDelete, and PageIndexDeleteNoCompact. Put it into a common function. Reviewed by Peter Geoghegan. Branch -- master Details ---

[COMMITTERS] pgsql: Rephrase the documentation on pg_receivexlog --synchronous optio

2015-02-03 Thread Heikki Linnakangas
Rephrase the documentation on pg_receivexlog --synchronous option. The old wording talked about a "sync command", meaining fsync(), but it was not very clear. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/507627f5b5c009aa95c04254614778c6263a3dc2 Modified Files ---