pgsql: Slight speedup in column processing.
Master: Removed erroneous mutex.

This mutex has survived since ~2000, and seems to never have been useful.

In Pike 8.0 and later it could cause a deadlock, due to locking order
together with the compilers internal mutex as used by decode_value():

  Legend:

    CM:	master()->compilation_mutex (now removed).
    IM:	The compilers internal mutex.

  Thread 1:		Thread 2:		Notes:
  ----------------------------------------------------------
  decode_value()
  compile()					Lock IM.
			low_cast_to_program()
			findprog()
			low_findprog()
			CM->lock()		Lock CM.
			compile()		Wait for IM.
  low_cast_to_program()
  findprog()
  low_findprog()
  CM->lock()					Wait for CM.

This bug wasn't triggered before Pike 8.0 as then the compiler
forced threads to be disabled on entry.

FIXME: Do we need to retain the symbol "master()->compilation_mutex"?

Fixes [bug 7366].
pgsql: Preserve type information if PG_DEBUG is defined.
pgsql: Avoid race during buffer fill/read.
pgsql: Check for the desired buffer size before returning.
Remove handshake messages once they have been hashed. Saves 1-2k per connection.
UUID v4 is essentially just an random string, so let's use random string directly instead.
OO more.
put_fix_string() and add_data() converted to add().
Better use of Stdio.Buffer APIs.
Removed bignum functions. Using them wouldn't do much.
pgsql: Cannot use add_hint() here, the types have already been set in stone.
Renamed methods for consistency with Stdio.Buffer
pgsql: Using howmuch with a sizeof compare of the Buffer does not work.

howmuch is the amount we need extra.  It does not relate to the amount
already in the Buffer.  To prevent a race/deadlock we need extra
signaling.
More OO.
More OO.
Refactored send_streaming_data
Narrower.
Allow buffer objects in handshake_packet() and hearbeat_packet().
SSL.Connection: Interoperability fix.

The handshake messages are hashed twice, so avoid
zapping them too early.

The SSL module now interoperates with other implementations again.

FIXME: What about renegotiation?