Heikki Linnakangas [Tue, 26 Oct 2010 19:50:31 +0000 (22:50 +0300)]
 
Note explicitly that hash indexes are also not replicated because they're not
WAL-logged. Make the notice about the lack of WAL-logging more visible by
making it a <caution>. Also remove the false statement from hot standby
caveats section that hash indexes are not used during hot standby.
Robert Haas [Tue, 26 Oct 2010 18:54:31 +0000 (14:54 -0400)]
 
Fix dumb typo in SECURITY LABEL error message.
Report by Peter Eisentraut.
Heikki Linnakangas [Tue, 26 Oct 2010 18:15:42 +0000 (21:15 +0300)]
 
Before removing backup_label and irrevocably changing pg_control file, check
that WAL file containing the checkpoint redo-location can be found. This
avoids making the cluster irrecoverable if the redo location is in an earlie
WAL file than the checkpoint record.
Report, analysis and patch by Jeff Davis, with small changes by me.
Peter Eisentraut [Tue, 26 Oct 2010 17:11:43 +0000 (20:11 +0300)]
 
Add missing newlines at end of files
Itagaki Takahiro [Tue, 26 Oct 2010 08:15:17 +0000 (17:15 +0900)]
 
Fix typos "are are".
Itagaki Takahiro [Tue, 26 Oct 2010 03:25:34 +0000 (12:25 +0900)]
 
Add .gitignore for contrib/uuid-ossp.
Peter Eisentraut [Mon, 25 Oct 2010 18:40:46 +0000 (21:40 +0300)]
 
Refactor typenameTypeId()
Split the old typenameTypeId() into two functions: A new typenameTypeId() that
returns only a type OID, and typenameTypeIdAndMod() that returns type OID and
typmod.  This isolates call sites better that actually care about the typmod.
Tom Lane [Mon, 25 Oct 2010 18:25:10 +0000 (14:25 -0400)]
 
Fix overly-enthusiastic Assert in printing of Param reference expressions.
A NestLoopParam's value can only be a Var or Aggref, but this isn't the
case in general for SubPlan parameters, so print_parameter_expr had better
be prepared to cope.  Brain fade in my recent patch to print the referenced
expression instead of just printing $N for PARAM_EXEC Params.  Per report
from Pavel Stehule.
Tom Lane [Mon, 25 Oct 2010 17:04:37 +0000 (13:04 -0400)]
 
Fix inline_set_returning_function() to preserve the invalItems list properly.
This avoids a possible crash when inlining a SRF whose argument list
contains a reference to an inline-able user function.  The crash is quite
reproducible with CLOBBER_FREED_MEMORY enabled, but would be less certain
in a production build.  Problem introduced in 9.0 by the named-arguments
patch, which requires invoking eval_const_expressions() before we can try
to inline a SRF.  Per report from Brendan Jurd.
Alvaro Herrera [Mon, 25 Oct 2010 12:24:02 +0000 (09:24 -0300)]
 
find -path is not portable, so use grep -v instead.
Per previous failure of buildfarm member koi (which is no longer
failing, alas).
Tom Lane [Mon, 25 Oct 2010 05:13:22 +0000 (01:13 -0400)]
 
Work around rounding misbehavior exposed by buildfarm.
Andrew Dunstan [Mon, 25 Oct 2010 03:53:44 +0000 (23:53 -0400)]
 
Remove unnecessary use of trigger flag to hash plperl functions
Tom Lane [Mon, 25 Oct 2010 03:04:37 +0000 (23:04 -0400)]
 
Allow new values to be added to an existing enum type.
After much expenditure of effort, we've got this to the point where the
performance penalty is pretty minimal in typical cases.
Andrew Dunstan, reviewed by Brendan Jurd, Dean Rasheed, and Tom Lane
Peter Eisentraut [Sun, 24 Oct 2010 12:54:00 +0000 (15:54 +0300)]
 
Support suffix matching of host names in pg_hba.conf
A name starting with a dot can be used to match a suffix of the actual
host name (e.g., .example.com matches foo.example.com).
Robert Haas [Fri, 22 Oct 2010 19:27:39 +0000 (15:27 -0400)]
 
Correct a mistake in levenshtein_less_equal() multibyte character handling.
Spotted by Alexander Korotkov.
Along the way, remove a misleading comment line.
Heikki Linnakangas [Fri, 22 Oct 2010 15:38:31 +0000 (18:38 +0300)]
 
Add semicolon, missed in previous patch. And update the keyword list in
the docs to reflect that OFF is now unreserved. Spotted by Tom Lane.
Heikki Linnakangas [Fri, 22 Oct 2010 14:37:38 +0000 (17:37 +0300)]
 
Make OFF keyword unreserved. It's not hard to imagine wanting to use 'off'
as a variable or column name, and it's not reserved in recent versions of
the SQL spec either. This became particularly annoying in 9.0, before that
PL/pgSQL replaced variable names in queries with parameter markers, so
it was possible to use OFF and many other backend parser keywords as
variable names. Because of that, backpatch to 9.0.
Bruce Momjian [Thu, 21 Oct 2010 21:46:42 +0000 (21:46 +0000)]
 
Mention limited usefulness of .pgpass database field.
Tom Lane [Thu, 21 Oct 2010 20:07:17 +0000 (16:07 -0400)]
 
Improve handling of domains over arrays.
This patch eliminates various bizarre behaviors caused by sloppy thinking
about the difference between a domain type and its underlying array type.
In particular, the operation of updating one element of such an array
has to be considered as yielding a value of the underlying array type,
*not* a value of the domain, because there's no assurance that the
domain's CHECK constraints are still satisfied.  If we're intending to
store the result back into a domain column, we have to re-cast to the
domain&nbs